Link team icon to edit screen
This commit is contained in:
@@ -14,7 +14,7 @@ function sp_manage_posts_custom_column( $column, $post_id ) {
|
||||
global $post;
|
||||
switch ( $column ):
|
||||
case 'sp_icon':
|
||||
the_post_thumbnail( 'sp_icon' );
|
||||
edit_post_link( get_the_post_thumbnail( $post_id, 'sp_icon' ), '', '', $post_id );
|
||||
break;
|
||||
case 'sp_position':
|
||||
echo get_the_terms ( $post_id, 'sp_position' ) ? the_terms( $post_id, 'sp_position' ) : '—';
|
||||
|
||||
@@ -22,7 +22,7 @@ function sp_tournament_edit_columns() {
|
||||
'title' => __( 'Title' ),
|
||||
'sp_team' => __( 'Teams', 'sportspress' ),
|
||||
'sp_event' => __( 'Events', 'sportspress' ),
|
||||
'sp_sponsor' => __( 'Sponsor', 'sportspress' )
|
||||
'sp_sponsor' => __( 'Sponsors', 'sportspress' )
|
||||
);
|
||||
return $columns;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user