From ee33f7b630e5fee2a866a666cbc885b1fbdca272 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Tue, 18 Mar 2014 09:31:50 +1100 Subject: [PATCH] Display teams as link list in league table teams column --- admin/hooks/manage-posts-columns.php | 2 ++ functions.php | 2 ++ 2 files changed, 4 insertions(+) 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 );