Skip to main content

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**.

Updated today

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

id

integer

get_the_ID()

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"]

Did this answer your question?