Support

Account

Home Forums Add-ons Repeater Field Output only first item in repeater field Reply To: Output only first item in repeater field

  • Start start doing a normal loop for a repeater and then break after the first row.

    
    if (have_rows('repeater')) {
      while (have_rows('repeater')) {
        the_row();
        // code here to show image
        
        // exit loop after first image
        break;
      }
    }