[tribe_events] shortcode is a great way to embed your calendar on any page or post and display upcoming events. But, if you want to display past events on the embedded calendar, that’s not currently supported.
In the meantime, you can use The Events Calendar Shortcode & Block. It’s a free third-party plugin by Event Calendar Newsletter. The plugin embeds your calendar on any page or post — just like ours does — but also allows you display past events in addition to upcoming events.
👋 Please note, since The Events Calendar Shortcode & Block is a third-party plugin that is not affiliated with The Events Calendar. If you are encountering issues or have questions, please reach out to the plugin developer in the WordPress.org support forum.
Using the plugin
Here are a few examples that demonstrate how The Events Calendar Shortcode & Block works.
Show past events
Let’s get right to solving our problem. Here’s how to display past events with the shortcode:
// Display all events in the "festival" category, including past events, in List view [ecs-list-events cat='festival' past='yes']
// Display all past events, including past events, in descending order in List view [ecs-list-events past='yes' order='DESC']
Show events within a specific date range
Need to show events between two specific dates? Here’s how:
[ecs-list-events fromdate='2020-05-31' todate='2020-06-15']
Show events between a specific date range with relative dates
It’s possible to show events from a relative date (e.g. today or three days from today) to another relative date.
For example, this is how we can show events between the current date and seven days in the future:
[ecs-list-events fromdate='today' todate='+7 days']
Similarly, we can show events that start seven days from the current date to seven days after that:
[ecs-list-events fromdate='+7 days' todate='+14 days']
Check out the full documentation, including more examples, on the plugin website.