Display table teams as total count in admin

This commit is contained in:
Brian Miyaji
2014-04-29 14:09:25 +10:00
parent 928ba49c3b
commit 5f73097918

View File

@@ -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 );