Support

Account

Home Forums Add-ons Repeater Field Repeater to create bootstrap tabs? Reply To: Repeater to create bootstrap tabs?

  • A repeater loop using the documentation from here http://www.advancedcustomfields.com/resources/have_rows/

    
    if (have_rows('repeater_field')) {
      // first loop
      while(have_rows('repeater_field_name')) {
        the_row();
        // output sub field content
        the_sub_field('sub_field_name');
      }
      
      // reset the rows of the repeater
      reset_rows();
      
      // second loop of same rows
      while(have_rows('repeater_field_name')) {
        the_row();
        // output sub field content
        the_sub_field('sub_field_name');
      }
    }