I would like to manage the selection of categories associated with posts through an ACF taxonomy field.
To do this, however, I have to manage the “uncategorized” category, removing it from the options available in the custom field and, if the user does not select any category, this is automatically associated with the post and disassociated if a category is selected instead.
The first hides the “uncategorized” category from the available options, the second SHOULD handle the update, but unfortunately it doesn’t seem to work. Every time I update, without selecting the available categories, the post is not associated with any category. It seems that the filter ‘acf/update_value’ does nothing and it is ignored even if I add a “die();” function.
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users