Support

Account

Home Forums General Issues Loop through all rows of ACF group without specifying row name Reply To: Loop through all rows of ACF group without specifying row name

  • I would use an array with the repeater name, for example.

    
    $repeaters = array('zero', 'low', 'medium', 'high');
    foreach ($repeaters as $repeater) {
      if (have_rows($repeater)) {
        while (have_rows($repeater)) {
          the_row();
          // etc...
        }
      }
    }