Display teams as link list in league table teams column
This commit is contained in:
@@ -88,6 +88,8 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) {
|
||||
echo '<br>';
|
||||
endif;
|
||||
endforeach;
|
||||
elseif ( $post_type == 'sp_table' ):
|
||||
echo sportspress_posts( $post_id, 'sp_team' );
|
||||
else:
|
||||
foreach( $teams as $team_id ):
|
||||
if ( ! $team_id ) continue;
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user