Home › Forums › ACF PRO › check if a certain value exists within query result › Reply To: check if a certain value exists within query result
To display different things if the term is not set in the field the first thing you would need to do is get all of the terms https://developer.wordpress.org/reference/functions/get_terms/
Then you would loop over all of the terms and see if each term is set in the field to see what you would display.
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.