This members-only tutorial provides the steps to display x number of entries of event custom post type where event_date custom field (of Date Picker or Date Time Picker type) is greater than today i.e., future events ordered by the latest (event date) entries in descending order.

We shall use pre_get_posts in a Code Block above Oxygen's Repeater component which is set to use a manual query.

Note: This tutorial is primarily meant for secondary queries on static Pages and not on the events CPT archive. You can still use the relevant pre_get_posts code but that needs to go in a Code Snippet or a custom functionality plugin. Plus more importantly, the Repeater's query should be left at Default in that case i.e., for the main query.

Step 1

In the Oxygen editor add a Section and inside that a Heading with the text "Upcoming Events".

Add a Repeater and set the query to manual having:


Click the Div inside the Repeater and add the linked event title, event date and any other relevant info as needed.

This is a premium members-only content.

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

Already a member? Log in below or here.

Need help implementing a tutorial in your site or want to hire me for custom work?


Find the article helpful and wish to donate?



You need to be logged in to view and post comments.
Not a member yet? Join here.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: