Player List Shortcode
Display a list of players and their statistics. The player list's post ID is required unless you're in The Loop.
By default, all players from the player list will be included. Change the
number parameter to choose the number of players to show. A value of
-1 will show all.
You can include comma-separated column slugs to choose which
columns to display, useful for creating ranking charts like goal scorers or all-time player records.
orderby parameter defines which column to use for the default sorting. By default, the player list's setting will be applied. Use
order to sort the players in
ASC (ascending) or
DESC (descending) order. This will also default to the player list's setting.
Players can also be grouped into smaller lists by position by setting
grouptag parameter changes the tag used in group headings, defaulting to
1 links player names to their pages. Similarly, the
link_teams parameter can be used for linking team names to their pages.
paginated arguments apply those scripts to the player list. Change the
rows value to set the number of rows to display when responsive mode is on.
If you would like to show a link to view all players below your player list, set
array( 'id' => '', 'number' => '-1', 'columns' => '', 'orderby' => 'default', 'order' => 'ASC', 'grouping' => '', 'grouptag' => 'h4', 'link_posts' => '1', 'link_teams' => '0', 'sortable' => '1', 'responsive' => '1', 'paginated' => '1', 'rows' => '10', 'show_all_players_link' => '0' )
[player_list id="99" number="5" columns="appearances,goals" grouping="position" grouptag="h3" paginated="0" show_all_players_link="1"]