Display teams as link list in league table teams column

This commit is contained in:
Brian Miyaji
2014-03-18 09:31:50 +11:00
parent 1aa1cb56ec
commit ee33f7b630
2 changed files with 4 additions and 0 deletions

View File

@@ -88,6 +88,8 @@ function sportspress_manage_posts_custom_column( $column, $post_id ) {
echo '<br>'; echo '<br>';
endif; endif;
endforeach; endforeach;
elseif ( $post_type == 'sp_table' ):
echo sportspress_posts( $post_id, 'sp_team' );
else: else:
foreach( $teams as $team_id ): foreach( $teams as $team_id ):
if ( ! $team_id ) continue; if ( ! $team_id ) continue;

View File

@@ -467,6 +467,8 @@ if ( !function_exists( 'sportspress_posts' ) ) {
endforeach; endforeach;
endif; endif;
$title = get_the_title( $id ); $title = get_the_title( $id );
if ( ! $title )
continue;
if ( empty( $title ) ) if ( empty( $title ) )
$title = __( '(no title)', 'sportspress' ); $title = __( '(no title)', 'sportspress' );
edit_post_link( $title, '', '', $id ); edit_post_link( $title, '', '', $id );