Use template function and load as needed

This commit is contained in:
Brian Miyaji
2014-03-25 13:03:58 +11:00
parent 73f5a2468d
commit 4659cf0f05
53 changed files with 1839 additions and 1648 deletions

View File

@@ -0,0 +1,14 @@
<?php
if ( ! isset( $id ) )
$id = get_the_ID();
$leagues = get_the_terms( $id, 'sp_league' );
// Loop through performance for each league
if ( is_array( $leagues ) ):
foreach ( $leagues as $league ):
sp_get_template( 'player-league-performance.php', array(
'league' => $league
) );
endforeach;
endif;