From 5f73097918f884dfd9521fa169168dc4b55a23cf Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Tue, 29 Apr 2014 14:09:25 +1000 Subject: [PATCH] Display table teams as total count in admin --- includes/admin/post-types/class-sp-admin-cpt-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/post-types/class-sp-admin-cpt-table.php b/includes/admin/post-types/class-sp-admin-cpt-table.php index 7ac04f52..3191e2bf 100644 --- a/includes/admin/post-types/class-sp-admin-cpt-table.php +++ b/includes/admin/post-types/class-sp-admin-cpt-table.php @@ -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' ) : '—'; break; case 'sp_team': - echo sp_posts( $post_id, 'sp_team' ); + echo sizeof( array_filter( get_post_meta( $post_id, 'sp_team' ) ) ); break; case 'sp_views': echo sp_get_post_views( $post_id );