Home › Forums › Backend Issues (wp-admin) › How can I filter the taxonomy field to show only 2nd level terms? › Reply To: How can I filter the taxonomy field to show only 2nd level terms?
You can’t override the terms shown. ACF does not have a filter for doing this and I don’t think it can be done unless you want to build a custom field type that does this. That’s a lot of work.
My suggestion, and how I would do this would be to use a standard select field. I would dynamically generate the values for the field using your code. https://www.advancedcustomfields.com/resources/dynamically-populate-a-select-fields-choices/. If I wanted the terms assigned to the posts in WP I would create and acf/load_value and acf/update_value filters so that I could get and set the terms. https://www.advancedcustomfields.com/resources/acf-load_value/, https://www.advancedcustomfields.com/resources/acf-update_value/
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.