I have a taxonomy custom field linked to a custom post type and it seems with the latest update to 4.2.0 the field is not working correctly.
I have added the relational Taxonomy field and have used the add_meta_box filter to remove the taxonomies from the page to clear the clutter.
The taxonomy is non-heirarchial and I have added it to my custom fields as a checkbox group. (I have also tried this with a multi-select too)
The issue is that when I select the taxonomy terms in the checkbox group and click update, a new taxonomy term is created with the ->name and ->slug of the first taxonomy term in the lists’ ID. The first taxonomy term in the list is no longer selected.
These particular taxonomy term slug’s are represented by numeric values. Could there be a conflict during the update process?
I have downgraded to 4.1.8 and the problem disappears.
Just dropping in with my $0.02 as well. When I look at the custom fields for a post, the field doesn’t seem to even be registering it has even been saved. This is only true for the multi-select and checkboxes. When I swap it to radio buttons or select box, I can see a custom field being created with a stored value.
BTW, thanks for all the hard work! You da man!
I assume this is the same bug, but for me I have a custom taxonomy on my pages. When I select one/all the terms and save a new term is created based on the term_id. ie. I know have a bunch of terms like 87, 88, 89…
Save/load is turned on. Saving to $term_object or $term_id makes no difference.
Reverting to 4.1.8 fixed the problem for me.
The topic ‘Latest Update 4.2.0 Taxonomy field not working correctly.’ is closed to new replies.
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!
© 2021 Advanced Custom Fields. Subscribe