My Repeater field is not showing anyone can help me, please.
This is my Code
<?php
// check if the repeater field has rows of data
if( have_rows(‘repeater_field_name’) ):
// loop through the rows of data
while ( have_rows(‘repeater_field_name’) ) : the_row();
// display a sub field value
the_sub_field(‘sub_field_name’);
endwhile;
else :
// no rows found
endif;
?>
Everest Base Camp Trek
Have you had any luck? I’m experiencing the exact same thing. Strangest part yet, it’s only one repeater on the same page. The rest are working.
<?php if ( have_rows( 'test_test' ) ) : ?>
<?php while ( have_rows( 'test_test' ) ) : the_row(); ?>
<?php the_sub_field( 'test_test_a' ); ?>
<?php the_sub_field( 'test_test_b' ); ?>
<?php the_sub_field( 'test_test_c' ); ?>
<?php the_sub_field( 'test_test_d' ); ?>
<?php endwhile; ?>
<?php else : ?>
<?php // no rows found ?>
<?php endif; ?>