Display statistics on player profile page

This commit is contained in:
Brian Miyaji
2014-01-14 00:58:18 +11:00
parent d8c1b13646
commit bd919ad121
6 changed files with 273 additions and 152 deletions

View File

@@ -7,14 +7,22 @@ function sportspress_the_content( $content ) {
global $post;
// Display league table
$content .= sportspress_league_table( $post->ID );
$content = sportspress_league_table( $post->ID ) . $content;
elseif ( is_singular( 'sp_list' ) && in_the_loop() ):
global $post;
global $post;
// Display player list
$content .= sportspress_player_list( $post->ID );
$content = sportspress_player_list( $post->ID ) . $content;
elseif ( is_singular( 'sp_player' ) && in_the_loop() ):
global $post;
// Display player list
$content = sportspress_player_statistics( $post->ID ) . $content;
endif;