12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Oct 12, 2021

Past Events in Oxygen

Sridhar Katakam

This members-only tutorial provides the steps to display past or old events in Oxygen.

Note: For future or upcoming events, follow this tutorial.

While the tutorial uses The Events Calendar plugin, it will also work in the scenario of registering your own event CPT with the associated start_date custom field using a plugin like ACF/Meta Box.

When using ACF if the date field is inside a group i.e., as a sub field, then you need to prefix the key with the group name. Ex.: events_event_date instead of event_date where events is the group name.

We shall output the events using the Advanced query in Easy Posts (a Repeater can be used instead if you prefer that) in the descending order of event's start date i.e., the most recent past event at the top.

Step 1

Edit your Page/Template with Oxygen.

Add a Section and inside that, an Easy Posts component.

Template PHP:

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.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-ocalendar-check-omagnifiercrossmenuchevron-downarrow-right