Fix duplicate league table headings as per https://wordpress.org/support/topic/league-table-name-repeated
This commit is contained in:
@@ -18,11 +18,5 @@ $tables = $team->tables();
|
|||||||
foreach ( $tables as $table ):
|
foreach ( $tables as $table ):
|
||||||
if ( ! $table ) continue;
|
if ( ! $table ) continue;
|
||||||
|
|
||||||
if ( sizeof( $tables ) > 1 ):
|
|
||||||
?>
|
|
||||||
<h4 class="sp-table-caption"><?php echo $table->post_title; ?></h4>
|
|
||||||
<?php
|
|
||||||
endif;
|
|
||||||
|
|
||||||
sp_get_template( 'league-table.php', array( 'id' => $table->ID, 'highlight' => $id ) );
|
sp_get_template( 'league-table.php', array( 'id' => $table->ID, 'highlight' => $id ) );
|
||||||
endforeach;
|
endforeach;
|
||||||
|
|||||||
Reference in New Issue
Block a user