Home › Forums › General Issues › WP_Query with meta_query on a subfield within a group field › Reply To: WP_Query with meta_query on a subfield within a group field
Sorry for delay, so I was trying two things at once..
• Meta_query without post_object field in a group
• Meta_query on a post_object field that is not multi-select
The first is obvious as you pointed out but is dependant on the second
Am I correct in thinking that for the second I would need to omit the double quotes?
'value' => $instrument,
..Instead of..
'value' => '"'.$instrument.'"',
What about compare? Should I use LIKE or IN for single post_object?
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.