Event Blocks
The [event_blocks] shortcode displays events as a vertical block layout — each event in its own card showing team logos, date, result or time, and optionally the event title, league, season, venue, and match day.
What It Displays
A paginated block-style table. Each row is one event with team logos side by side, the date, and the score or scheduled time. Optional metadata fields (league, season, venue, match day) appear below the score.
When to Use It
Use on any page, post, or widget. Supply id to pull events from a specific SportsPress Calendar. Without id, the shortcode uses get_the_ID().
Parameters
Parameter | Type | Default | Description |
| integer |
| Post ID of the SportsPress Calendar. |
| integer |
| Filter to a specific event post ID. |
| 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 team associations. |
| string |
| Exclude events after this date. |
| integer |
| Player post ID to filter events. |
| integer |
| Maximum number of events to show. |
| string/array |
| Comma-separated column slugs to override the Calendar's column config. |
| string |
| Field to order by (e.g. |
| string |
| Sort order: |
| boolean | From settings |
|
| boolean | From settings |
|
| boolean | From settings |
|
| boolean | From settings |
|
| integer | From settings | Rows per page. Default follows the Event Blocks > Rows setting (default |
| boolean |
|
|
| boolean | From settings |
|
| boolean | From settings |
|
| boolean | From settings |
|
| boolean | From settings |
|
| boolean | From settings |
|
| boolean |
|
|
Usage Examples
Minimal — all events from a specific calendar:
[event_blocks id="30"]
Future events with logos and venue, limited to 5:
[event_blocks id="30" status="future" show_team_logo="1" show_venue="1" number="5"]
Block layout grouped by match day, showing league and season metadata:
[event_blocks id="30" orderby="day" show_league="1" show_season="1"]
