Event List
The [event_list] shortcode displays events from a SportsPress Calendar as a sortable, paginated table with columns for date, event name (or home/away teams), time/results, venue, league, season, article, and match day.
What It Displays
A data table of events. Columns shown depend on the Calendar's column configuration and the columns parameter override. Results or time are shown in a combined or separate format depending on the time_format and title_format settings.
When to Use It
Use on any page or post. Supply id to pull events from a specific Calendar. Without id, the shortcode falls back to get_the_ID() and will look for a Calendar post with that ID — it is most useful when placed on a Calendar's own page (inside the Loop) or with an explicit id.
Parameters
Parameter | Type | Default | Description |
| integer |
| Post ID of the SportsPress Calendar to display. |
| string/boolean |
| Override the displayed heading. |
| string |
| Event status filter: |
| string |
| Event format filter. |
| string |
| Date preset filter. |
| string |
| Start of date range (YYYY-MM-DD). |
| string |
| End of date range (YYYY-MM-DD). |
| string |
| Days in the past to include. |
| string |
| Days in the future to include. |
| string |
| Relative date mode. |
| string |
| Match day filter. |
| integer/string |
| League term ID or slug. |
| integer/string |
| Season term ID or slug. |
| integer/string |
| Venue term ID or slug. |
| integer |
| Team post ID to filter events. |
| integer |
| Filter to include past teams. |
| string |
| Exclude events after this date. |
| integer |
| Player post ID to filter events. |
| integer |
| Maximum number of events to display. |
| string/array |
| Comma-separated column slugs to override the Calendar's column selection (e.g. |
| string |
| Sort order: |
| boolean | From settings |
|
| boolean | From settings |
|
| boolean | From settings |
|
| boolean | From settings |
|
| boolean | From settings |
|
| boolean | From settings |
|
| boolean | From settings |
|
| boolean | From settings |
|
| integer | From settings | Rows per page when pagination is active. Default |
| boolean |
|
|
| boolean | From settings |
|
| string | From settings | Column layout: |
| string | From settings | Time/results column format: |
Usage Examples
Minimal — all events from a specific calendar:
[event_list id="30"]
Future events only, team names linked, paginated with 5 rows per page:
[event_list id="30" status="future" link_teams="1" paginated="1" rows="5"]
Home/away format, with logos and a "View all events" link:
[event_list id="30" title_format="homeaway" show_team_logo="1" show_all_events_link="1"]
