Player Details
The [player_details] shortcode displays a player's profile details table — nationality, position, current and past teams, league, season, and any configured metrics (height, weight, age, etc.).
What It Displays
A horizontal data table with columns for whichever details are enabled in Settings > Players > Details: jersey number, full name, nationality (with optional flag), positions, current teams, past teams, leagues, seasons, and before/after metrics. The shortcode outputs nothing if the Players > Show details setting is disabled.
When to Use It
Use on a single player page inside the Loop. Outside the Loop, supply id. Display of individual rows is controlled by the global SportsPress player settings, not by shortcode parameters.
Parameters
Parameter | Type | Default | Description |
| integer |
| Post ID of the player. Required outside the Loop. |
Note: Which rows appear (number, name, nationality, positions, teams, leagues, seasons, metrics, flags) is controlled entirely by Settings > Players > Details. No additional shortcode parameters are supported beyond id.
Usage Examples
Inside the Loop on a single player page:
[player_details]
Embedding a specific player's details on any page:
[player_details id="88"]
