Player Statistics
The [player_statistics] shortcode displays a player's season-by-season performance statistics — one table per league, with per-season rows and optional career totals.
What It Displays
One or more statistics tables, organized by league. Each table has rows for each season the player has appearances in, showing configured performance column values. If Show career totals is enabled in settings, a totals row is appended. The shortcode outputs nothing if both Players > Show statistics and Players > Show total settings are disabled.
When to Use It
Use on a single player page inside the Loop. Outside the Loop, supply id. The player must have performance data recorded across events to populate the table.
Parameters
Parameter | Type | Default | Description |
| integer |
| Post ID of the player. Required outside the Loop. |
Note: Display options (show statistics, show career totals, show teams, scrollable, sections order) are controlled by global SportsPress settings under Settings > Players. Only id is accepted as a shortcode parameter.
Usage Examples
Inside the Loop on a single player page:
[player_statistics]
Embedding a specific player's career statistics on any page:
[player_statistics id="88"]
