From bf7e201eaecb1b45ffd30aa6b4a7d35d8819cd5c Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 13 Oct 2016 22:54:22 +1100 Subject: [PATCH] Fix player list including past players --- includes/class-sp-player-list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-sp-player-list.php b/includes/class-sp-player-list.php index 7296532a..21d82c40 100644 --- a/includes/class-sp-player-list.php +++ b/includes/class-sp-player-list.php @@ -97,7 +97,7 @@ class SP_Player_List extends SP_Custom_Post { if ( $team && apply_filters( 'sportspress_has_teams', true ) ): $args['meta_query'] = array( array( - 'key' => 'sp_team', + 'key' => 'sp_current_team', 'value' => $team ), );