Display player number in admin
This commit is contained in:
@@ -78,6 +78,9 @@ class SP_Admin_CPT_Player extends SP_Admin_CPT {
|
|||||||
*/
|
*/
|
||||||
public function custom_columns( $column, $post_id ) {
|
public function custom_columns( $column, $post_id ) {
|
||||||
switch ( $column ):
|
switch ( $column ):
|
||||||
|
case 'sp_number':
|
||||||
|
echo get_post_meta ( $post_id, 'sp_number', true );
|
||||||
|
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' ) : '—';
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user