BACK TO DIRECTORY

Advanced H2H for SportsPress

by Savvas

5.0
(4 ratings)

This plugin is an extension for SportsPress.

Give your league managers the option to use more advanced Sorting Criteria for your League Tables.
Now is possible to select different Sorting Criteria for each League Table!

How to Use

Step 1: Create Sorting Criteria

  1. Go to SportsPress -> Teams -> Sorting Criteria in your WordPress admin.
  2. Click “Add New Criterion”.
  3. Give your criterion a descriptive name (e.g., “Premier League Style”, “Champions League Rules”).

Step 2: Configure Regular Order

In the “Regular Order” section:

  1. Drag and drop the columns in the order you want them to be considered for initial sorting.
  2. Toggle the switch to disable criteria you do not want.
  3. Set sort direction (Ascending/Descending) for each column.

This determines the primary sorting order when teams have different points.

Important: The Tiebreak Order is only applied between teams that are equal on every column enabled in the Regular Order. If you want the head-to-head rules to decide between teams that are level on points, keep Points as the only column in the Regular Order and move everything else (including overall Goal Difference and Goals For) to the Tiebreak Order. If you leave Goal Difference in the Regular Order, teams that are level on points but have a different Goal Difference are separated before the head-to-head rules can be applied.

Step 3: Configure Tiebreak Order

In the “Tiebreak Order” section:

  1. Drag and drop columns in the order they should be used for tiebreakers.
  2. Toggle the switch to disable criteria you do not want.
  3. Set sort direction for each column.
  4. Enable the “H2H Only” checkbox for columns that should only consider head-to-head results (matches played between the tied teams). Leave it unchecked for a column that should use full-season stats.

This determines how teams are ranked when they are equal on the Regular Order (for example, when they have the same points).

Step 4: Review the Summary

The “Sorting Criteria Summary” sidebar shows:

  • Your configured regular order.
  • Your configured tiebreak order.
  • A clear overview of your sorting rules.

Step 5: Apply to League Tables

  1. Go to SportsPress -> Tables.
  2. Edit an existing league table or create a new one.
  3. In the sidebar, find the “Advanced Sorting Criteria” meta box.
  4. Select your custom sorting criterion from the dropdown.
  5. Save the league table.

Examples

Premier League Style (overall Goal Difference decides before head-to-head):

  • Regular Order: Points (DESC), Goal Difference (DESC), Goals For (DESC)
  • Tiebreak Order: Points (DESC), Goal Difference (DESC), Goals For (DESC), Goals Away (DESC)

Champions League Style (head-to-head decides before overall Goal Difference):

  • Regular Order: Points (DESC)
  • Tiebreak Order: Points [H2H Only] (DESC), Goal Difference [H2H Only] (DESC), Goals For [H2H Only] (DESC), Goal Difference (DESC), Goals For (DESC)

Note: for the Champions League style, Points must be the only column in the Regular Order. Overall Goal Difference and Goals For go in the Tiebreak Order (with “H2H Only” unchecked) so they are only used after the head-to-head criteria. Putting Goal Difference in the Regular Order would separate teams that are level on points before the head-to-head rules are applied.

Screenshots

The new CPT Sorting Criteria at SportsPress Teams Menu

The new CPT Sorting Criteria at SportsPress Teams Menu

"Regular" Order priorities (Pts, GD, F) i.e. Premier League

"Regular" Order priorities (Pts, GD, F) i.e. Premier League

Tiebreak Order priorities (Pts, Goal Away) i.e. Premier League

Tiebreak Order priorities (Pts, Goal Away) i.e. Premier League

Sorting Criteria Summary i.e. Premier League

Sorting Criteria Summary i.e. Premier League

Selection of Sorting Criterion at your League Table Edit Page.

Selection of Sorting Criterion at your League Table Edit Page.

Plugin Details

Active Installs
200
Total Downloads
8,926
Version
2.1.3
Requires WP
5.3
Requires PHP
7.4
Tested Up To
7.1
Added
2022-12-23
Last Updated
2026-09-03 8:09pm GMT

Ratings

5
4
4
0
3
0
2
0
1
0