Return all events that a team participated.

This commit is contained in:
savvasha
2020-08-30 10:43:04 +03:00
parent 7969ae6603
commit dfea672c44

View File

@@ -377,18 +377,11 @@ class SP_Player_List extends SP_Secondary_Post {
$team_key = 'sp_team'; $team_key = 'sp_team';
if ( $team ): if ( $team ):
switch ( $era ):
case 'current':
$team_key = 'sp_current_team';
break;
case 'past':
$team_key = 'sp_past_team';
break;
endswitch;
$args['meta_query'][] = array( $args['meta_query'][] = array(
array( array(
'key' => $team_key, 'key' => $team_key,
'value' => $team 'value' => $team,
'compare' => 'IN',
), ),
); );
endif; endif;