🎯 Need Help?

Get Premium Support

Priority assistance from the developer

⬆️ Upgrade

Unlock all features

More from ANWP

Sports Leagues Premium

Multi-sport league management with advanced statistics

Learn more →

AnWP SL Theme Kit

Starter themes & block patterns for Sports Leagues

Learn more →

Referee Stats Shortcode

Pro Feature

Display individual referee statistics in a visual panel format. Shows selected stats like cards given and fouls called with totals and per-game averages. Perfect for referee profile pages.

Premium Feature

This shortcode requires the Football Leagues Premium plugin.

Basic Usage

[anwpfl-referee-stats referee_id="14"]

This displays statistics for referee 14 in visual stat boxes.

Available Stats

Stat Description
card_y Total yellow cards
card_y_h Yellow cards (home teams)
card_y_a Yellow cards (away teams)
card_r Total red cards
card_r_h Red cards (home teams)
card_r_a Red cards (away teams)
foul Total fouls called
foul_h Fouls (home teams)
foul_a Fouls (away teams)

All Parameters

Parameter Default Description
referee_id * (required) Referee ID(s), comma-separated for multiple
stats (all) Stats to display (comma-separated)
competition_id (all) Filter to specific competition
season_id (all) Filter to specific season
league_id (all) Filter to specific league
show_secondary 1 Include secondary stages (multistage competitions). Use 0 to disable

Note

By default, show_secondary="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 show_secondary="0".

Display Parameters

Parameter Default Description
per_game 1 Show per-game averages. Use 0 to hide
show_games 1 Show games count. Use 0 to hide
block_width (auto) Custom width for stat blocks in pixels

* Required parameter

Examples

Example 1: Full Referee Profile Stats

When to use: Referee profile page.

[anwpfl-referee-stats referee_id="14" stats="card_y,card_r,foul"]

Result: Main stats with totals and per-game averages.

Example 2: Home/Away Breakdown

When to use: Analyze home/away bias.

[anwpfl-referee-stats referee_id="14" stats="card_y_h,card_y_a,card_r_h,card_r_a"]

Result: Cards broken down by home/away teams.

Example 3: Competition-Specific Stats

When to use: Show stats for a single competition.

[anwpfl-referee-stats referee_id="14" competition_id="12"]

Result: Stats from Premier League only.

Example 4: Compare Multiple Referees

When to use: Side-by-side referee comparison.

[anwpfl-referee-stats referee_id="14,15,16" stats="card_y,card_r"]

Result: Stats for multiple referees displayed together.

Tip

For a ranking table of all referees, use [anwpfl-referees-stats] instead. This shortcode is best for featuring individual referee profiles.

Related