Support

Account

Home Forums Bug Reports comment_form() displaying ACF fields on post page but not outside

Helping

comment_form() displaying ACF fields on post page but not outside

  • I have a number of custom fields set up in ACF (Pro) that should display for comments.

    This works great when I call comment_form() inside the posts.php page.

    However, when trying to use the comment form outside posts.php – which I need to do in my specific situation:

    comment_form(null, 3156); // Show comments form for post ID 3156

    The default comments form is rendered, without any ACF fields!

    Is there something I can do to fix this?
    This felt buggy enough to file it as one even though I’m not 100% sure.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘comment_form() displaying ACF fields on post page but not outside’ is closed to new replies.