Home › Forums › ACF PRO › check if a certain value exists within query result › Reply To: check if a certain value exists within query result
Hm. The above code returns an array of all terms. I also tried out get_field_object which extends the array returning an array of all fields, labels, terms etc. I can’t see how the get_terms function would give a different result?
However how would I look over all terms?
I tried to compare using PHP in_array function but that didn’t work (it’s always giving me “true” no matter if the term is set or not).
Any idea on how to write that loop?
Thank you, Ralf
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.