Display table teams as total count in admin
This commit is contained in:
@@ -67,7 +67,7 @@ class SP_Admin_CPT_Table extends SP_Admin_CPT {
|
|||||||
echo get_the_terms ( $post_id, 'sp_season' ) ? the_terms( $post_id, 'sp_season' ) : '—';
|
echo get_the_terms ( $post_id, 'sp_season' ) ? the_terms( $post_id, 'sp_season' ) : '—';
|
||||||
break;
|
break;
|
||||||
case 'sp_team':
|
case 'sp_team':
|
||||||
echo sp_posts( $post_id, 'sp_team' );
|
echo sizeof( array_filter( get_post_meta( $post_id, 'sp_team' ) ) );
|
||||||
break;
|
break;
|
||||||
case 'sp_views':
|
case 'sp_views':
|
||||||
echo sp_get_post_views( $post_id );
|
echo sp_get_post_views( $post_id );
|
||||||
|
|||||||
Reference in New Issue
Block a user