Thank you for sharing. This works for me as a filter to exclude some categories from the field in the backend (I was looking for this, to give editors less choice when selecting categories for posts). But, I was looking for a way to do this on a field by field basis. Say, for the taxonomy field “test_tax1” exclude (or hide) the categories 64,65,66 and for the taxonomy field “test_tax2” exclude (or hide) the categories 67,68.
Can you think of a way to do this?
At the moment the categories are excluded (hidden) on all taxonomy fields of the regular wp categories.
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!