Past Meetings
The Past Meetings module adds a section to event pages showing previous matches between the same two teams. It queries past events involving the current event's teams and displays them in the layout of your choice. It is part of SportsPress Pro.
Enabling Past Meetings
Past Meetings is registered as an event page template with the option key sportspress_event_show_past_meetings. Its default value is no, so it is hidden by default.
To enable it, go to SportsPress → Settings → Events and enable the Past Meetings toggle in the event display section.
Layout Options
Go to SportsPress → Settings → Events → Past Meetings to configure the layout. The setting key is sportspress_past_meetings_format.
Blocks (
blocks) — The default. Previous meetings are displayed using the event blocks template (event-blocks.php), which shows each event as a result block.List (
list) — Previous meetings are displayed using the event list template (event-list.php), rendered as a table with columns for the event name, time, and results.
In list layout, the displayed columns are: Event, Time, and Results (filterable via the sp_past_meetings_columns filter).
How It Works
The Past Meetings section looks up the teams assigned to the current event (from sp_team post meta) and queries for other published events that include those same teams, with a date before the current event's date (date_before). Results are ordered newest first (DESC).
The section is hidden automatically when no past meetings are found (the hide_if_empty parameter is true).
Text Labels
The section heading Past Meetings can be customized via SportsPress → Settings → Text.
