Home › Forums › Add-ons › Repeater Field › Show ACF values from nested repeater on another page template › Reply To: Show ACF values from nested repeater on another page template
Ok, so I’ve managed to get the values appearing with the following!
<?php while ( have_rows('listings_block', 28) ) : the_row(); ?>
<?php while( have_rows('listings_row', 28)): the_row(); ?>
<pre><?php the_sub_field('title'); ?></pre>
<?php endwhile; ?>
<?php endwhile; ?>
It returns the first value within the nested repeater, but it doesn’t loop through the nested rows for some reason. Any ideas as to how I could get the nested repeater looping through all of the row values?
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.