Home › Forums › General Issues › Getting repeater data to display › Reply To: Getting repeater data to display
I’ve somehow gotten rid of the endwhile syntax error by cleaning up the comments elsewhere in the template.
But I’m still left with no data displaying. I’ve fleshed out the snippet with the rest of the fields from that repeater field. This is the full code bit that I currently have, but still nothing displays.
<div class="patrol-bulletin-data">
<?php if( get_field('summary_section') ): ?>
<php while ( has_sub_field('summary_section') ): ?>
<div class='summary-data'>
<?php the_sub_field('bulletin_summary'); ?>
<?php the_sub_field('location'); ?>
<?php the_sub_field('report_number'); ?>
<?php the_sub_field('incident_date'); ?>
<?php the_sub_field('incident_time'); ?>
</div>
<php endwhile; ?>
<?php endif; ?>
</div>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.