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;
|
global $post;
|
||||||
switch ( $column ):
|
switch ( $column ):
|
||||||
case 'sp_icon':
|
case 'sp_icon':
|
||||||
the_post_thumbnail( 'sp_icon' );
|
edit_post_link( get_the_post_thumbnail( $post_id, 'sp_icon' ), '', '', $post_id );
|
||||||
break;
|
break;
|
||||||
case 'sp_position':
|
case 'sp_position':
|
||||||
echo get_the_terms ( $post_id, 'sp_position' ) ? the_terms( $post_id, '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' ),
|
'title' => __( 'Title' ),
|
||||||
'sp_team' => __( 'Teams', 'sportspress' ),
|
'sp_team' => __( 'Teams', 'sportspress' ),
|
||||||
'sp_event' => __( 'Events', 'sportspress' ),
|
'sp_event' => __( 'Events', 'sportspress' ),
|
||||||
'sp_sponsor' => __( 'Sponsor', 'sportspress' )
|
'sp_sponsor' => __( 'Sponsors', 'sportspress' )
|
||||||
);
|
);
|
||||||
return $columns;
|
return $columns;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user