Display a results matrix showing head-to-head results between all teams in a competition. The matrix shows home team results on rows and away team results in columns, giving a complete overview of all matchups.
Premium Feature
This shortcode requires the Football Leagues Premium plugin.
Basic Usage
[anwpfl-results-matrix standing_id="45"]
This displays a results matrix using the clubs from standing table 45.
All Parameters
| Parameter | Default | Description |
|---|---|---|
standing_id |
(empty) | Standing Table ID to get clubs and matches from |
competition_id |
(empty) | Competition ID (alternative to standing_id) |
group_id |
1 | Group number when competition has multiple groups |
Examples
Example 1: Using Standing Table
When to use: Most common approach – uses existing standing table.
[anwpfl-results-matrix standing_id="45"]
Result: Matrix showing all head-to-head results between clubs in the standing.
Example 2: Using Competition ID
When to use: When you don’t have a standing table configured.
[anwpfl-results-matrix competition_id="12"]
Result: Matrix based on competition matches.
Example 3: Specific Group in Multi-Group Competition
When to use: Competition has multiple groups (e.g., Champions League group stage).
[anwpfl-results-matrix competition_id="12" group_id="2"]
Result: Matrix showing only Group B results.
Tip
Using standing_id is recommended as it ensures the matrix clubs match your standing table exactly. The competition_id method derives clubs from matches which may differ.
Reading the Matrix
- Rows: Home teams
- Columns: Away teams
- Cell value: Score from home team’s perspective (e.g., “2-1” means home won)
- Empty cells: Match not yet played or same team (diagonal)
Troubleshooting
Matrix empty or incomplete?
- Verify matches exist and have results
- Check standing_id or competition_id is correct
- For multi-group competitions, verify group_id
Clubs missing from matrix?
- Clubs must have played at least one match
- Using standing_id ensures all standing clubs appear
Related
[anwpfl-standing]– League standings table[anwpfl-matches-h2h]– Head-to-head match comparison
