Support

Account

Home Forums Add-ons Repeater Field Repeater front-end Reply To: Repeater front-end

  • Hi Barrowr, if you update your code to

    
    <?php if( have_rows('itinerary_day_details') ):?>
    <table>
    <!-- Header row for all cols in table -->
    <tr>
    <th>Date</th>
    <th>Port</th>
    <th>Arrival Time</th>
    <th>Departure Date</th>
    <th>Activity</th>
    </tr>
    <?php while ( have_rows('itinerary_day_details') ) : the_row(); ?>
    <tr>
    <td><?= the_sub_field('date'); ?></td>
    <td><?= the_sub_field('port'); ?></td>
    <td><?= the_sub_field('arrival_time'); ?></td>
    <td><?= the_sub_field('departure_date'); ?></td>
    <td><?= the_sub_field('activity'); ?></td>
    </tr>
    <?php endwhile; ?>
    <?php else: ?>
    <!-- if no rows are found add markup below -->
    <?php endif;?>