Fix double header when multiple player lists displayed in team

This commit is contained in:
Brian Miyaji
2021-11-18 00:46:01 +09:00
parent 01e2ae2069
commit ca584aa2bc

View File

@@ -22,7 +22,7 @@ foreach ( $lists as $list ) :
$id = $list->ID;
$grouping = get_post_meta( $id, 'sp_grouping', true );
if ( $grouping == 0 && sizeof( $lists ) > 1 ) :
if ( $grouping == 'position' && sizeof( $lists ) > 1 ) :
?>
<h4 class="sp-table-caption"><?php echo wp_kses_post( $list->post_title ); ?></h4>
<?php