{"id":167675,"date":"2022-12-23T20:41:34","date_gmt":"2022-12-23T20:41:34","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/sportspress-advanced-h2h\/"},"modified":"2026-05-18T18:12:45","modified_gmt":"2026-05-18T18:12:45","slug":"advanced-h2h-for-sportspress","status":"publish","type":"plugin","link":"https:\/\/ltz.wordpress.org\/plugins\/advanced-h2h-for-sportspress\/","author":14367600,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.1.2","stable_tag":"2.1.2","tested":"7.0","requires":"5.3","requires_php":"7.4","requires_plugins":null,"header_name":"Advanced H2H for SportsPress","header_author":"Savvas","header_description":"Give your league managers the option to use more advanced head to head criteria for tiebreaks.","assets_banners_color":"","last_updated":"2026-05-18 18:12:45","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/profiles.wordpress.org\/savvasha\/","rating":5,"author_block_rating":0,"active_installs":200,"downloads":8177,"num_ratings":4,"support_threads":1,"support_threads_resolved":1,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"savvasha","date":"2022-12-23 20:40:56"},"2.0.0":{"tag":"2.0.0","author":"savvasha","date":"2024-03-21 09:20:39"},"2.0.1":{"tag":"2.0.1","author":"savvasha","date":"2024-03-21 09:20:39"},"2.0.2":{"tag":"2.0.2","author":"savvasha","date":"2024-10-28 20:01:24"},"2.1.0":{"tag":"2.1.0","author":"savvasha","date":"2024-12-21 12:43:59"},"2.1.1":{"tag":"2.1.1","author":"savvasha","date":"2026-02-03 10:51:10"},"2.1.2":{"tag":"2.1.2","author":"savvasha","date":"2026-05-18 18:12:45"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":4},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2838705,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2838705,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":2838705,"resolution":false,"location":"assets","locale":false}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","2.0.0","2.0.1","2.0.2","2.1.0","2.1.1","2.1.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2842739,"resolution":"1","location":"assets","locale":"","width":277,"height":292},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2842739,"resolution":"2","location":"assets","locale":"","width":726,"height":837},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2842739,"resolution":"3","location":"assets","locale":"","width":720,"height":553},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2842739,"resolution":"4","location":"assets","locale":"","width":505,"height":362},"screenshot-5.png":{"filename":"screenshot-5.png","revision":2842739,"resolution":"5","location":"assets","locale":"","width":542,"height":311}},"screenshots":{"1":"The new CPT Sorting Criteria at SportsPress Teams Menu","2":"\"Regular\" Order priorities (Pts, GD, F) i.e. Premier League","3":"Tiebreak Order priorities (Pts, Goal Away) i.e. Premier League","4":"Sorting Criteria Summary i.e. Premier League","5":"Selection of Sorting Criterion at your League Table Edit Page."}},"plugin_section":[],"plugin_tags":[229434,229435,4644,6658,2289],"plugin_category":[40],"plugin_contributors":[152192],"plugin_business_model":[],"class_list":["post-167675","plugin","type-plugin","status-publish","hentry","plugin_tags-h2h","plugin_tags-head-to-head","plugin_tags-sort","plugin_tags-sorting","plugin_tags-table","plugin_category-calendar-and-events","plugin_contributors-savvasha","plugin_committers-savvasha"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/advanced-h2h-for-sportspress\/assets\/icon.svg?rev=2838705","icon":"https:\/\/ps.w.org\/advanced-h2h-for-sportspress\/assets\/icon.svg?rev=2838705","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/advanced-h2h-for-sportspress\/assets\/screenshot-1.png?rev=2842739","caption":"The new CPT Sorting Criteria at SportsPress Teams Menu"},{"src":"https:\/\/ps.w.org\/advanced-h2h-for-sportspress\/assets\/screenshot-2.png?rev=2842739","caption":"\"Regular\" Order priorities (Pts, GD, F) i.e. Premier League"},{"src":"https:\/\/ps.w.org\/advanced-h2h-for-sportspress\/assets\/screenshot-3.png?rev=2842739","caption":"Tiebreak Order priorities (Pts, Goal Away) i.e. Premier League"},{"src":"https:\/\/ps.w.org\/advanced-h2h-for-sportspress\/assets\/screenshot-4.png?rev=2842739","caption":"Sorting Criteria Summary i.e. Premier League"},{"src":"https:\/\/ps.w.org\/advanced-h2h-for-sportspress\/assets\/screenshot-5.png?rev=2842739","caption":"Selection of Sorting Criterion at your League Table Edit Page."}],"raw_content":"<!--section=description-->\n<p>This plugin is an extension for <a href=\"https:\/\/wordpress.org\/plugins\/sportspress\/\">SportsPress<\/a>.<\/p>\n\n<p>Give your league managers the option to use more advanced Sorting Criteria for your League Tables.\nNow is possible to select different Sorting Criteria for each League Table!<\/p>\n\n<h3>How to Use<\/h3>\n\n<h4>Step 1: Create Sorting Criteria<\/h4>\n\n<ol>\n<li>Go to <strong>SportsPress -&gt; Teams -&gt; Sorting Criteria<\/strong> in your WordPress admin.<\/li>\n<li>Click <strong>\"Add New Criterion\"<\/strong>.<\/li>\n<li>Give your criterion a descriptive name (e.g., \"Premier League Style\", \"Champions League Rules\").<\/li>\n<\/ol>\n\n<h4>Step 2: Configure Regular Order<\/h4>\n\n<p>In the <strong>\"Regular Order\"<\/strong> section:<\/p>\n\n<ol>\n<li>Drag and drop the columns in the order you want them to be considered for initial sorting.<\/li>\n<li>Toggle the switch to disable criteria you do not want.<\/li>\n<li>Set sort direction (Ascending\/Descending) for each column.<\/li>\n<\/ol>\n\n<p>This determines the primary sorting order when teams have different points.<\/p>\n\n<h4>Step 3: Configure Tiebreak Order<\/h4>\n\n<p>In the <strong>\"Tiebreak Order\"<\/strong> section:<\/p>\n\n<ol>\n<li>Drag and drop columns in the order they should be used for tiebreakers.<\/li>\n<li>Toggle the switch to disable criteria you do not want.<\/li>\n<li>Set sort direction for each column.<\/li>\n<li>Enable the <strong>\"H2H Only\"<\/strong> checkbox for columns that should only consider head-to-head results.<\/li>\n<\/ol>\n\n<p>This determines how teams are ranked when they have the same points.<\/p>\n\n<h4>Step 4: Review the Summary<\/h4>\n\n<p>The <strong>\"Sorting Criteria Summary\"<\/strong> sidebar shows:<\/p>\n\n<ul>\n<li>Your configured regular order.<\/li>\n<li>Your configured tiebreak order.<\/li>\n<li>A clear overview of your sorting rules.<\/li>\n<\/ul>\n\n<h4>Step 5: Apply to League Tables<\/h4>\n\n<ol>\n<li>Go to <strong>SportsPress -&gt; Tables<\/strong>.<\/li>\n<li>Edit an existing league table or create a new one.<\/li>\n<li>In the sidebar, find the <strong>\"Advanced Sorting Criteria\"<\/strong> meta box.<\/li>\n<li>Select your custom sorting criterion from the dropdown.<\/li>\n<li>Save the league table.<\/li>\n<\/ol>\n\n<h4>Examples<\/h4>\n\n<p><strong>Premier League Style:<\/strong><\/p>\n\n<ul>\n<li>Regular Order: Points (DESC), Goal Difference (DESC), Goals For (DESC)<\/li>\n<li>Tiebreak Order: Points (DESC), Goal Difference (DESC), Goals For (DESC), Goals Away (DESC)<\/li>\n<\/ul>\n\n<p><strong>Champions League Style:<\/strong><\/p>\n\n<ul>\n<li>Regular Order: Points (DESC), Goal Difference (DESC), Goals For (DESC)<\/li>\n<li>Tiebreak Order: Points (DESC), Head-to-Head Points (DESC), Head-to-Head Goal Difference (DESC), Goal Difference (DESC)<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate Advanced H2H for SportsPress plugin.<\/li>\n<li>Create your own Sorting Criterion at <code>SportsPress-&gt;Teams-&gt;Sorting Criteria<\/code>.<\/li>\n<li>Select your preferred Sorting Criterion for your League Table <\/li>\n<li>Enjoy!<\/li>\n<\/ol>\n\n<h4>Credits<\/h4>\n\n<ul>\n<li><a href=\"https:\/\/www.themeboy.com\/\">Themeboy<\/a><\/li>\n<\/ul>\n\n<!--section=changelog-->\n<h4>2.1.2<\/h4>\n\n<ul>\n<li>FIX: Fatal TypeError \"Unsupported operand types: int + string\" on PHP 8+ when <code>sp_minutes<\/code> event meta is empty or non-numeric.<\/li>\n<\/ul>\n\n<h4>2.1.1<\/h4>\n\n<ul>\n<li>FIX: Highlight team feature is not working.<\/li>\n<\/ul>\n\n<h4>2.1.0<\/h4>\n\n<ul>\n<li>UPDATE: Update league-table template to latest version.<\/li>\n<\/ul>\n\n<h4>2.0.2<\/h4>\n\n<ul>\n<li>FIX: Avoid blank page if SportsPress is not activated.<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>FIX: Error if the plugin is loaded before SportsPress.<\/li>\n<\/ul>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>NEW: Sorting Criteria Custom Post Type (see screenshots)<\/li>\n<li>NEW: Ability to choose for each League Table which ordering criteria to use! (see screenshots)<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First Release!<\/li>\n<\/ul>","raw_excerpt":"Give your league managers the option to use more advanced Sorting Criteria for your League Tables.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ltz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/167675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ltz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ltz.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ltz.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=167675"}],"author":[{"embeddable":true,"href":"https:\/\/ltz.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/savvasha"}],"wp:attachment":[{"href":"https:\/\/ltz.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=167675"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ltz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=167675"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ltz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=167675"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ltz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=167675"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ltz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=167675"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ltz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=167675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}