diff --git a/admin/hooks/manage-posts-columns.php b/admin/hooks/manage-posts-columns.php index 66bdd8e4..e23bd7f6 100644 --- a/admin/hooks/manage-posts-columns.php +++ b/admin/hooks/manage-posts-columns.php @@ -88,6 +88,8 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) { echo '
'; endif; endforeach; + elseif ( $post_type == 'sp_table' ): + echo sportspress_posts( $post_id, 'sp_team' ); else: foreach( $teams as $team_id ): if ( ! $team_id ) continue; diff --git a/functions.php b/functions.php index 804a8b41..13ae760c 100644 --- a/functions.php +++ b/functions.php @@ -467,6 +467,8 @@ if ( !function_exists( 'sportspress_posts' ) ) { endforeach; endif; $title = get_the_title( $id ); + if ( ! $title ) + continue; if ( empty( $title ) ) $title = __( '(no title)', 'sportspress' ); edit_post_link( $title, '', '', $id );