From f44140d9ba67aafc7a21a7d2a1a5128843349de5 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Tue, 29 Apr 2014 11:08:32 +1000 Subject: [PATCH] Check if not admin when filtering title --- includes/sp-template-hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/sp-template-hooks.php b/includes/sp-template-hooks.php index b53d18c1..20069c19 100644 --- a/includes/sp-template-hooks.php +++ b/includes/sp-template-hooks.php @@ -87,7 +87,7 @@ add_action( 'sportspress_single_staff_content', 'sportspress_output_staff_detail add_action( 'loop_start', 'sportspress_output_venue_map' ); function sportspress_the_title( $title, $id ) { - if ( ! current_theme_supports( 'sportspress' ) && in_the_loop() && $id == get_the_ID() ): + if ( ! is_admin() && ! current_theme_supports( 'sportspress' ) && in_the_loop() && $id == get_the_ID() ): if ( is_singular( 'sp_player' ) ): $number = get_post_meta( $id, 'sp_number', true ); if ( $number != null ):