Getting wrong relationship value in $args in wp_Query?

add : $inner_arrays['relation'] = 'OR';
and then query will be like :

$args = array(
    'post_type'  => 'products',
    'post_status'=> 'publish',
    'meta_query' => $inner_arrays
);

this works …. 🙂

Leave a Comment