How to show past events

October 19, 2021

How to show past events

Is there a separate shortcode to show past events?

Not at the moment.

How to show past events with existing shortcodes without any addons

Past events can be shown using the below shortcode without needing any additional addons. However, this method will not eliminate the current month’s current events.

Example:

The shortcode (in the above example) will show 2 months on the month’s list, but the two months shown will be the past two months. If the current month is September, the above shortcode will display July and August.

TheĀ key in the above shortcode is the month_incre variable which is set to -2 (negative 2) — which pushes the time back to 2 months.

NOTE: When using this it’s important to make sure you have set “Hide past events in the calendar” option to “NO” in EventON settings.

How to show past events with EventLists Ext. Addon

With this shortcode

Using the Eventlist Ext. addon, you can easily show only past events list regardless of the month.

 

Did this article help you? If not, send us a ticket via helpdesk

Ready to setup your calendar?