Display club statistics rankings in a customizable table. Shows team stats like wins, goals, clean sheets, corners, and more. Perfect for league statistics pages showing club performance comparisons.
Premium Feature
This shortcode requires the Football Leagues Premium plugin.
Basic Usage
[anwpfl-stats-clubs competition_id="12" columns="goals,goals_conceded,clean_sheets"]
This displays club statistics for goals, goals conceded, and clean sheets.
Available Columns
| Column | Description |
|---|---|
played |
Games played |
wins |
Matches won |
draws |
Matches drawn |
losses |
Matches lost |
goals |
Goals scored |
goals_conceded |
Goals conceded |
clean_sheets |
Clean sheets |
cards_y |
Yellow cards |
cards_r |
Red cards |
corners |
Corners won |
fouls |
Fouls committed |
offsides |
Offsides |
shots |
Total shots |
shots_on_goal |
Shots on target |
{custom_stat} |
Custom club stats from settings |
All Parameters
Column Selection
| Parameter | Default | Description |
|---|---|---|
columns * |
(required) | Columns to display (comma-separated) |
Query Parameters
| Parameter | Default | Description |
|---|---|---|
competition_id |
(empty) | Competition ID |
season_id |
(empty) | Season ID |
league_id |
(empty) | League ID |
multistage |
1 | Include secondary stages (multistage competitions). Use 0 to disable |
side |
(all) | Filter by venue: home or away |
date_after |
(empty) | Start date (YYYY-MM-DD) |
date_before |
(empty) | End date (YYYY-MM-DD) |
days_offset |
(empty) | Dynamic start date. Use negative for past (e.g., -7 = 7 days ago) |
days_offset_to |
(empty) | Dynamic end date. Use 0 for today, positive for future days |
Note
By default, multistage="1" includes all stages of multistage competitions. The Competition Selector only shows main stages. To get statistics for a specific stage (knockout or playoff), enter the stage ID manually in competition_id and set multistage="0".
Sorting Parameters
| Parameter | Default | Description |
|---|---|---|
sort_column |
(empty) | Primary sort column |
sort_order |
DESC | Sort order: asc or desc |
sort_column_2 |
(empty) | Secondary sort column |
sort_order_2 |
DESC | Secondary sort order |
Display Parameters
| Parameter | Default | Description |
|---|---|---|
club_column |
logo_abbr | Club display: title, logo, abbr, logo_title, logo_abbr |
header |
(empty) | Custom header text |
hide_empty_columns |
1 | Hide columns with no data. Use 0 to show |
column_font_size |
(empty) | Column header font size in px |
max_column_width |
(empty) | Maximum column width in px |
* Required parameter
Examples
Example 1: Top Scoring Teams
When to use: Show attacking statistics leaders.
[anwpfl-stats-clubs competition_id="12" columns="goals,shots,shots_on_goal" sort_column="goals"]
Result: Teams ranked by goals scored.
Example 2: Defensive Statistics
When to use: Show defensive performance.
[anwpfl-stats-clubs competition_id="12" columns="goals_conceded,clean_sheets" sort_column="goals_conceded" sort_order="asc"]
Result: Teams ranked by fewest goals conceded.
Example 3: Home Form Statistics
When to use: Compare teams at home.
[anwpfl-stats-clubs competition_id="12" columns="wins,goals,goals_conceded" side="home" header="Home Form"]
Result: Home match statistics only.
Example 4: Discipline Rankings
When to use: Show fair play rankings.
[anwpfl-stats-clubs competition_id="12" columns="cards_y,cards_r,fouls" sort_column="cards_y"]
Result: Teams ranked by cards and fouls.
Example 5: Season Overview
When to use: Combined stats across all competitions.
[anwpfl-stats-clubs season_id="5" columns="played,wins,draws,losses,goals"]
Result: All club stats from season 5.
Example 6: Last 7 Days Form
When to use: Rolling weekly form guide.
[anwpfl-stats-clubs competition_id="12" columns="goals,goals_conceded,wins" days_offset="-7" days_offset_to="0"]
Result: Club stats from last 7 days, automatically updating daily.
Tip
For single club statistics (instead of rankings), use the [anwpfl-stats-club] shortcode which displays one club’s stats in a panel format.
Troubleshooting
Empty columns?
- Verify match statistics are recorded
- Check
hide_empty_columnsparameter - Some stats require manual entry (corners, shots, etc.)
Related
[anwpfl-stats-club]– Single club statistics panel[anwpfl-standing]– League standings table (Core)[anwpfl-cards]– Discipline rankings (Core)
