Home › Forums › General Issues › Query pages by Taxonomy Tag Name › Reply To: Query pages by Taxonomy Tag Name
What is the value of $select_categories_to_show_term->name
?
This needs to be an array of term names. I don’t think it is because ACF does not have an option to return term names. You will need to loop over the array of terms that ACF returns and extract the names if you are returning term objects. If you are returning the term ID then it will get a little more complicated. On the other hand, if you are returning an array of term IDs then what you need to do is query by the term ID instead of the name.
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.