Home › Forums › General Issues › Multiple relationships in a query › Reply To: Multiple relationships in a query
Hi @guiloviu
Looking at the code you have posted, there is clearly a problem with the way you have nested your arrays.
For example, you have
'relation' => 'AND',
and
'relation' => 'OR',
in the same array.
I think you should take another look at the WP_Query docs and also post this question on stack exchange as it does not involve any ACF specific functions.
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.