Event Details
The [event_details] shortcode displays a summary table of an event's metadata: date, time, league, season, match day, and full-time minutes. Which rows appear is controlled by the SportsPress settings under Events > Details.
What It Displays
A horizontal data table with columns for whichever details are enabled in settings (date, time, league, season, match day, full-time duration). The table has a "Details" caption.
When to Use It
Typically placed on a page that embeds a full event recap. Inside the Loop on a single event page the shortcode requires no parameters — it reads the current post. Outside the Loop (e.g., embedding on a static page) you must supply id.
Parameters
Parameter | Type | Default | Description |
| integer |
| Post ID of the event to display. Required outside the Loop. |
Note: This shortcode accepts only id. Which detail rows are shown and in what format is controlled entirely by the global SportsPress settings (Events > Settings > Details), not by shortcode parameters.
Usage Examples
Inside the Loop on a single event page — no parameters needed:
[event_details]
Embedding a specific event's details on any page:
[event_details id="155"]
