I have this simple code, but can't get the_content and the ACF-code to work together.
If I include the_content() it blocks out the ACF-code, but if I remove the_content() the ACF-code works fine. I suspect there's a very simple solution to this.
I've simplified and removed unnecessary elements from the code below:
<?php while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <?php if( have_rows('boxes') ): ?> <p>This is only shown when the_content() is removed.</p> <?php else : // no rows found endif; ?> <?php endwhile; ?>