Add league taxonomy

This commit is contained in:
Brian Miyaji
2014-01-15 03:34:21 +11:00
parent 83508d138e
commit d198a2cea1
16 changed files with 853 additions and 406 deletions

View File

@@ -1,10 +1,30 @@
<?php
function sportspress_the_content( $content ) {
if ( is_singular( 'sp_team' ) && in_the_loop() ):
if ( is_singular( 'sp_event' ) && in_the_loop() ):
global $post;
// Display event details
$content = sportspress_event_details( $post->ID ) . $content;
elseif ( is_singular( 'sp_calendar' ) && in_the_loop() ):
global $post;
// Display events calendar
$content = sportspress_events_calendar( $post->ID ) . $content;
elseif ( is_singular( 'sp_team' ) && in_the_loop() ):
global $post;
// Display team columns
$content = sportspress_team_columns( $post->ID ) . $content;
elseif ( is_singular( 'sp_table' ) && in_the_loop() ):
global $post;
global $post;
// Display league table
$content = sportspress_league_table( $post->ID ) . $content;
@@ -21,7 +41,7 @@ function sportspress_the_content( $content ) {
global $post;
// Display player list
// Display player metrics and statistics
$content = sportspress_player_metrics( $post->ID ) . sportspress_player_statistics( $post->ID ) . $content;
endif;