If I use my ACF-code alone it works fine, but as soon as I include the_content, the page only displays the main content, and nothing from ACF. Here’s my code, very simplified (yet it still exhibits the behaviour I describe):
<?php while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
if( have_rows('boxes') ): ?>
<p>This is only shown when the_content() is removed.</p>
// no rows found
<?php endwhile; ?>
I found out what it was. Actually I think this might be caused by a bug in WordPress (or perhaps one of the add-ons I’m using).
In the content editor I had blocked out some of the code with “<!–” and “–>”. For some reasonthe closing markup “–>” didn’t get registered, so in the code anything after
the_content(); got blocked out.