diff --git a/admin/hooks/manage-posts-custom-column.php b/admin/hooks/manage-posts-custom-column.php index 9b620ed9..fb10c975 100644 --- a/admin/hooks/manage-posts-custom-column.php +++ b/admin/hooks/manage-posts-custom-column.php @@ -42,6 +42,7 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) { endforeach; else: foreach( $teams as $team_id ): + if ( ! $team_id ) continue; $team = get_post( $team_id ); echo $team->post_title . '
'; endforeach;