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.

[player_list id="99"]

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.

The   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  grouping to position. The grouptag parameter changes the tag used in group headings, defaulting to h4.

Setting   link_posts to 1 links player names to their pages. Similarly, the link_teams parameter can be used for linking team names to their pages.

The   sortableresponsive, and 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   show_all_players_link to 1.

Args:

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'
)

Example usage:

[player_list id="99" number="5" columns="appearances,goals" grouping="position" grouptag="h3" paginated="0" show_all_players_link="1"]

Still need help? Submit a Support Ticket Submit a Support Ticket