Home › Forums › General Issues › Getting repeater data to display › Reply To: Getting repeater data to display
Somehow I solved this. I read through the info on the repeater plugin page again and modified my code. Didn’t see any obvious changes, but this snippet is working now.
<?php if(get_field('summary_section')): ?>
<div class="section-head"><h2>Summary</h2></div>
<?php while(has_sub_field('summary_section')): ?>
<ul>
<li class="bulletin-data-item"><h3>Bulletin Summary</h3><?php the_sub_field('bulletin_summary'); ?></li>
<li class="bulletin-data-item"><h3>Location</h3><?php the_sub_field('location'); ?></li>
<li class="bulletin-data-item"><h3>Report Number</h3><?php the_sub_field('report_number'); ?></li>
<li class="bulletin-data-item"><h3>Incident Date</h3><?php the_sub_field('incident_date'); ?></li>
<li class="bulletin-data-item"><h3>Incident Time</h3><?php the_sub_field('incident_time'); ?></li>
</ul>
<?php endwhile; ?>
<?php endif; ?>
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.