Display player list on front end

This commit is contained in:
ThemeBoy
2013-12-04 03:45:13 +11:00
parent fbd189a4dd
commit de06094d95
4 changed files with 207 additions and 120 deletions

View File

@@ -43,8 +43,16 @@ function sportspress_the_content( $content ) {
// Display league table
$content .= '<p>' . sp_get_table_html( $post->ID ) . '</p>';
elseif ( is_singular( 'sp_list' ) && in_the_loop() ):
global $post;
// Display player list
$content .= '<p>' . sp_get_list_html( $post->ID ) . '</p>';
endif;
return $content;
}
add_filter('the_content', 'sportspress_the_content');