Home › Forums › Add-ons › Repeater Field › Repeater data does not appear › Reply To: Repeater data does not appear
I believe that’s because the repeater you were trying to get is located inside another repeater. So you should do it like this:
<?php if ( have_rows('phases') ):
while ( have_rows('phases') ): the_row(); ?>
<?php if ( have_rows('follow_up') ):
while ( have_rows('follow_up') ): the_row(); ?>
<?php $date = DateTime::createFromFormat('Ymd', get_sub_field('data_de_atualização'));
echo $date->format('d/m/Y'); ?>
<?php the_sub_field('n_do_processo'); ?>
<?php the_sub_field('unidade'); ?>
<?php $date = DateTime::createFromFormat('Ymd', get_sub_field('desde'));
echo $date->format('d/m/Y'); ?>
<?php the_sub_field('situacao'); ?>
<?php the_sub_field('detalhamento_kallas'); ?>
<?php endwhile;
endif; ?>
<?php endwhile;
endif; ?>
This page should give you more idea about it: https://www.advancedcustomfields.com/resources/working-with-nested-repeaters/.
Also, it seems there’s something wrong with your custom field options because I got a lot of warning when I use it. Could you please make sure that you have the correct code?
I hope this helps 🙂
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.