Home Forums General Issues the_content not working in have_rows


the_content not working in have_rows

  • I’m using the have_rows function in a custom template and while all of my custom fields are working, when I try to add the_content to the template, it doesn’t work. Nothing shows up for that. What do I need to do in order to have the post’s content displayed alongside the custom fields?

  • Hi @benheath

    The WP function the_content() can only be used WITHIN a WP loop. Please make sure the global $post object is correct at the time of using the the_content() function.

    It is possible that your ACF code is modifying the global post obejct, or that your template does not contain a WP loop to target a global post object.


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

The topic ‘the_content not working in have_rows’ is closed to new replies.