Support

Account

Home Forums Add-ons Repeater Field Top Item of Repeater Field Not Showing Reply To: Top Item of Repeater Field Not Showing

  • You have to use the new repeater field code. while_has_subfield is deprecated…

     
    // 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;