Home › Forums › Bug Reports › Slugbug? › Reply To: Slugbug?
Hi @YourMark
Your field group contains 3 location rules which will never return true for ALL of them being correct on the same page.
All 3 rules are in the same ‘AND’ group. You need to break out the options rule into it’s own group to make it an ‘OR’.
You can use the ACF UI to create the field group, then export the field group to PHP and see how the location rules are grouped in arrays.
As for the get_field function. Please describe where you have used it. and Provide the code too.
Thanks
E
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.