Fix issue where current post was being displayed as a team in admin
This commit is contained in:
@@ -42,6 +42,7 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) {
|
|||||||
endforeach;
|
endforeach;
|
||||||
else:
|
else:
|
||||||
foreach( $teams as $team_id ):
|
foreach( $teams as $team_id ):
|
||||||
|
if ( ! $team_id ) continue;
|
||||||
$team = get_post( $team_id );
|
$team = get_post( $team_id );
|
||||||
echo $team->post_title . '<br>';
|
echo $team->post_title . '<br>';
|
||||||
endforeach;
|
endforeach;
|
||||||
|
|||||||
Reference in New Issue
Block a user