Well, I've a created a post type with several custom fields (with ACF) and now I need to retrive the custom post_type by one of it's custom fields, that has an array as the meta_value, this is the code that I'm using to get the custom post_type
$args = array(
'post_type' => 'featured',
'posts_per_page' => 1,
'post_status' => 'publish',
'meta_query' => array(
array(
'key' => 'where_it_will_show',
'value' => 156,
'compare' => 'IN',
),
),
);
$where = new WP_Query($args);
If I remove the media_query part it works, but I need this filter :/ If anything wrong with my code? Is there another option to get this filter done?
Thanks in advance