Home › Forums › General Issues › Search custom field value to display taxonomy name › Reply To: Search custom field value to display taxonomy name
It depends on what version of ACF you’re using. 4 (from the WP repo) or 5 (Pro version)
In both cases you’re going to use get_terms()
https://developer.wordpress.org/reference/functions/get_terms/
In the most recent ACF 5 you can use use a meta query.
With ACF 4 you will need to get all the terms and loop through them to find the one with the right value, this is the same for any version of ACF < 5.5.0
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.