🎯 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 →

Results Matrix Shortcode

Pro Feature

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.

Results matrix shortcode - a cross-table with every club down the left and the same clubs across the top, each cell holding the score of that fixture

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