Support

Account

Home Forums Add-ons Repeater Field Repeater field is not displaying in frontend

Helping

Repeater field is not displaying in frontend

  • 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') ):
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.