From 3ffd38bd1e279c71cb782be7101b3db44f7ffc50 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 18 Nov 2021 00:19:29 +0900 Subject: [PATCH] Revert "Fix double header when multiple player lists are displayed in team" This reverts commit 0fac424d6f518d351b61cb8cbbf7c2725d47b59a. --- templates/team-lists.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/team-lists.php b/templates/team-lists.php index 8cbe5ed1..27acb589 100644 --- a/templates/team-lists.php +++ b/templates/team-lists.php @@ -20,6 +20,14 @@ $lists = $team->lists(); foreach ( $lists as $list ) : $id = $list->ID; + $grouping = get_post_meta( $id, 'sp_grouping', true ); + + if ( $grouping == 0 && sizeof( $lists ) > 1 ) : + ?> +

post_title ); ?>

+ formats->list ) ) { sp_get_template( 'player-' . $format . '.php', array( 'id' => $id ) );