Show Only Future Events (CPT) with the Repeater in Oxygen

If we have a custom post type ‘Events’ with a custom field for the event date, we may want to show a list of just the events that are in the future using the repeater or easy posts. This premium tutorial walks through how we can do exactly that.

For this tutorial, let’s assume our custom post type is ‘Events’ and we have set up an event start date using Advanced Custom Fields. The field type is a date picker and the name of the field is ‘event_date’.

Displaying the Events in Oxygen

Using the repeater settings, we can set the query to custom and change the post type to Events. This will show all of the events that are published.

We can design the repeater however we see fit.

Filtering the Results by Event Date

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $599 one-time).

Already a member? Log in below or here.


Posted

in

,

by

Comments

2 responses to “Show Only Future Events (CPT) with the Repeater in Oxygen”

  1. BlackAnvilMedia Avatar
    BlackAnvilMedia

    Very useful tutorial! I would love to see a similar tutorial using ‘pre_get_posts’ to query posts from an ACF relationship field!

  2. Martin Boisclair Avatar
    Martin Boisclair

    Is there a way to make groups of months. Sorry 🙂

Leave a Reply to Martin Boisclair Cancel reply

Your email address will not be published. Required fields are marked *