Support

Account

Home Forums ACF PRO Display Specific Repeater Field Row Based on Date Reply To: Display Specific Repeater Field Row Based on Date

  • Add a break statement after showing the first. Example:

    
    if (have_rows('repeater')) {
      while (have_rows('repeater')) {
        the_row();
        if ($condition) {
          // display row
          // exit loop so no more are shown
          break;
        }
      }
    }