Home Forums Add-ons Repeater Field How do I only show future events? Reply To: How do I only show future events?

  • Apologies, I am a bit of a newbie to this. I should have included my code.

    <?php if(have_rows('event')): ?>
                <?php while(have_rows('event')): the_row() ?>
                        <h2><?php the_sub_field('event_title') ?></h2>
                        <section class="metadata">
                            <ul class="clearfix">
                                <li><?php the_sub_field('event_date') ?></li>
                                <li><?php the_sub_field('event_start_time') ?> - <?php the_sub_field('event_finish_time') ?></li>
                                <li><?php the_sub_field('event_venue') ?></li>
                        <?php the_sub_field('event_description') ?>
                <?php endwhile; ?>
            <?php endif; ?>