Home › Forums › Front-end Issues › Wp_query with relationship to another custom post type › Reply To: Wp_query with relationship to another custom post type
'meta_query' => array( array( 'key' => 'hospital', 'value' => array( 3, 4 ), // array of hospitals IDs from 1st query 'compare' => 'IN', ),
Cool?
Not cool 🙂
This does not work in my particular case. I can query with a single ID and compare “LIKE” but not with an array of IDs and compare “IN”.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.