Assume, i have two custom post types - Project and Technology. Every project has a relation to Technology (using ACF). The question is - How to filter it by Technology. I tried this approach:
'post_type' => 'project', 'meta_query' => array( 'relation' => 'AND', array( 'key' => 'technology', 'value' => $_GET['technology'], 'compare' => 'LIKE', ), array( 'key' => 'country', 'value' => $_GET['country'], 'compare' => 'LIKE', ) )
But it works only for simple relations (like string, int or bool), but i doesn't work with object relations.