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;?>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.