I'm trying to make filter by querying different elements from a custom post type (stores)
The problem is when I want to query the "styles", given that all stores have 2 or more instead of just one and the query is not working
$style = $_GET['style'];
if(empty($style)) {
$style = array('Casual/Décontracté','Classique','Luxe','Vintage','Street/Sports','Gothic/Underground' );
}
<div class="row"><?php
if(have_posts() ):
$args = array(
'post_type' => 'store',
'meta_key' => 'store_client_type' ,
'meta_query' => array(
'style_clause' => array(
'key' => 'store_style',
'value' => $style,
),
)
),
);