From a4aa9637557c2b0a6f7794589ca1c1565eea7131 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sat, 25 Jan 2014 05:41:03 +1100 Subject: [PATCH] Fix content filter --- admin/hooks/the-content.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/admin/hooks/the-content.php b/admin/hooks/the-content.php index c459a415..47c294d7 100644 --- a/admin/hooks/the-content.php +++ b/admin/hooks/the-content.php @@ -17,6 +17,7 @@ function sportspress_default_event_content( $content ) { $venue = sportspress_event_venue(); $content = $details . $venue . $players . $staff . $content; endif; + return $content; } add_filter( 'the_content', 'sportspress_default_event_content' ); @@ -49,7 +50,7 @@ function sportspress_default_table_content( $content ) { add_filter( 'the_content', 'sportspress_default_table_content' ); function sportspress_default_player_content( $content ) { - if ( is_singular( 'sp_list' ) && in_the_loop() ): + if ( is_singular( 'sp_player' ) && in_the_loop() ): $metrics = sportspress_player_metrics(); $statistics = sportspress_player_statistics(); $content = $metrics . $statistics . $content; @@ -59,7 +60,7 @@ function sportspress_default_player_content( $content ) { add_filter( 'the_content', 'sportspress_default_player_content' ); function sportspress_default_list_content( $content ) { - if ( is_singular( 'sp_player' ) && in_the_loop() ): + if ( is_singular( 'sp_list' ) && in_the_loop() ): $list = sportspress_player_list( get_the_ID() ); $content = $list . $content; endif;