Display emdash when no teams
This commit is contained in:
@@ -40,7 +40,8 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) {
|
||||
break;
|
||||
case 'sp_team':
|
||||
$post_type = get_post_type( $post );
|
||||
$teams = get_post_meta( $post_id, 'sp_team', false );
|
||||
$teams = (array)get_post_meta( $post_id, 'sp_team', false );
|
||||
$teams = array_filter( $teams );
|
||||
if ( empty( $teams ) ):
|
||||
echo '—';
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user