Display team player list title only if not grouped

This commit is contained in:
Brian Miyaji
2014-06-20 17:40:16 +10:00
parent de3a82f9db
commit 6d6148280e

View File

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