Support

Account

Home Forums Add-ons Repeater Field Translate date inside Repeater field. Reply To: Translate date inside Repeater field.

  • sorry, that’s a typo on my part, it should be have_rows()

    
    if (have_rows('repeater_field_name')) {
      $dates = array();
      while(have_rows('repeater_field_name')) {
        the_row();
        $date = get_sub_field('date_subfield_name');
        if ($date) {
          $dates[] = date_i18n('j \d\e\ F \-\ G \h\s', strtotime($date_3));
        }
      } // end while have rows
      if ( $dates) {
        echo '<h5>UPCOMING EVENTS</h5><p> ' . implode(' | ', $dates) . '</p>';
      }
    } // end if have rows