I have a search query where show me no result when I use a repeater or sub_field
$args = array(
'meta_query' => array(
'relation' => 'OR',
array(
'relation' => 'OR',
array(
'key' => 'destination_city',
'value' => $_destination,
),
array(
'key' => 'departure_city_%_departure_city_name',
'value' => $_departure,
),
),
array(
'relation' => 'AND',
array(
'key' => 'destination_city',
'value' => $_destination,
'compare' => '=',
),
array(
'key' => 'departure_city_%_departure_city_name',
'value' => $_departure,
),
),
),
);
$destinationSearchQuery = new WP_Query( $args );
If I chnage the ‘key’ => ‘departure_city_%_departure_city_name for ‘key’ => ‘departure_city_0_departure_city_name or ‘key’ => ‘departure_city_1_departure_city_name works find, any idea how can I make that works?