Support

Account

Home Forums Add-ons Repeater Field How to limit the records output from a basic repeater loop? Reply To: How to limit the records output from a basic repeater loop?

  • 
    if (have_rows('repeater')) {
      $count = 1;
      while (have_rows('repeater')) {
        the_row();
        // code to show row
        $count++;
        if ($count > 3) {
          break;
        }
      }
    }