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