Avoid overriding meta_query args when a team is selected
This commit is contained in:
@@ -276,7 +276,7 @@ class SP_Calendar extends SP_Secondary_Post {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( ! empty( $teams ) ) {
|
if ( ! empty( $teams ) ) {
|
||||||
$args['meta_query'] = array(
|
$args['meta_query'][] = array(
|
||||||
array(
|
array(
|
||||||
'key' => 'sp_team',
|
'key' => 'sp_team',
|
||||||
'value' => $teams,
|
'value' => $teams,
|
||||||
|
|||||||
Reference in New Issue
Block a user