Support

Account

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