Hi tried to add repeater field but it is not showing in frontend
<?php
if( have_rows(‘casino_data’) ):
while( have_rows(‘casino_data’, ‘option’) ) : the_row();
$number = get_sub_field(‘number’);
$img = get_sub_field(‘image’);
$name = get_sub_field(‘name’);
echo $number;
endwhile;
else :
endif;
?>
Old question, but if you have not solved this, the issue is that you need to supply the post ID in both the if
and while
statements
if( have_rows('casino_data', 'option') ):
while( have_rows('casino_data', 'option') ):