Player List
The [player_list] shortcode displays a roster table of players with their configured statistics columns. Players can be sorted, paginated, grouped by position, and filtered by team or season.
What It Displays
A data table with one row per player. The first column shows player name (with optional photo and nationality flag). Subsequent columns show configured performance statistics. Players can be grouped under position headings when grouping="position" is set.
When to Use It
Use on any page. Supply id pointing to a SportsPress Player List post. Inside the Loop on a Player List post page, id can be omitted.
Parameters
Parameter | Type | Default | Description |
| integer |
| Post ID of the Player List. Required outside the Loop. |
| string/boolean |
| Override the displayed heading. |
| integer |
| Maximum number of players to display. |
| string/array |
| Comma-separated performance column slugs to override the list's column selection (e.g. |
| string/null | From list | Group players: |
| string |
| HTML heading tag for group labels when grouping is active (e.g. |
| string |
| Column slug to sort by. |
| string |
| Sort direction: |
| integer/string |
| League term ID(s) to filter player stats by league. |
| integer/string |
| Season term ID(s) to filter player stats by season. |
| integer |
| Team post ID to filter players by current team. |
| boolean |
|
|
| boolean | From settings |
|
| boolean | From settings |
|
| boolean | From settings |
|
| string | From settings | How to display team column: |
| boolean | From settings |
|
| boolean | From settings |
|
| boolean | From settings |
|
| boolean | From settings |
|
| boolean | From settings |
|
| boolean | From settings |
|
| integer | From settings | Rows per page when pagination is active. Default from Lists > Rows setting ( |
Usage Examples
Minimal — full player list:
[player_list id="55"]
Top 10 goal scorers, sorted descending, grouped by position:
[player_list id="55" number="10" orderby="goals" order="DESC" grouping="position" grouptag="h3"]
Player list for a specific team, with photos, linked names, and a "View all players" link:
[player_list id="55" team="12" show_player_photo="1" link_posts="1" show_all_players_link="1"]
Compact list without pagination, custom columns:
[player_list id="55" columns="appearances,goals,assists" paginated="0"]
