I upload a custom post type including a custom taxonomy (with multiple terms) as concept. This custom taxonomy is linked to a custom taxonomy field. The custum taxonomy field is shown as a checkbox and I have ticked “Load value based on the post’s terms and update the post’s terms on save”. Up to version 4.4.0 the custom taxonomy field did get the custom taxonomy terms checked as expected in accordance with the custom taxonomy terms. In version 4.4.1 and 2 the custom taxonomy field does not show the terms checked and on save the terms disappear also in the custom taxonomy(as might be expected because no term in the custom field is checked).
I would like to to have the “Load value based on the post’s terms” functionality back.
I just tested this on ACF 4.4.2 and WP 4.2.2, an it seems to be working for me.
Just curios if you also recently updated to WP 4.2 or later and if it stopped working at that point.
Do you have terms that are associated with this post type that are also in other taxonomies?
The reason that I ask is that in WP 4.2 shared taxonomy terms started getting split https://make.wordpress.org/core/2015/02/16/taxonomy-term-splitting-in-4-2-a-developer-guide/
There is another person having this problem. http://support.advancedcustomfields.com/forums/topic/taxonomy-issues-in-version-4-4-1/#post-25862
ACF 4.4.1 changed the taxonomy field to be ready for the WP 4.2 update
4.4.1 Taxonomy field: Added compatibility for upcoming 'term splitting' in WP 4.2 Taxonomy field: Major improvement to save/load setting allowing for different values on multiple sub fields Core: Minor fixes and improvements
Thanks for the bug report, Can you please elaborate a bit more on the issue?
If you use the taxonomy field to select terms, doe sthe value save as normal?
Is it only when you select terms outside of the taxonomy field that the field does not show these new values?
I’m running the website fysiocursus.nl. This is directory of courses for physiotherapists. Once every month I upload a set of new courses as a concept using Really Simple CSV Importer. The custom post type and custom taxonomies are created using Types. Up to ACF 4.4.0 the uploaded taxonomy terms were reflected in the custom taxonomy field.
In 4.4.2 the oploaded terms are not reflected in the cutom field. When I tick one ore more terms in the custom field, these are saved on publication or updating the post.
Thanks for the info.
Yes, in a recent update, I changed the logic so that the taxonomy field will only save selected terms. This is different from the previous functionality which would also load terms connected to the post..
The reason for this change was to allow sub fields to select different sub fields but allow them to save all selections to the post.
Perhaps I should add in an extra option for taxonomy fields to allow them to ‘save’ as well as ‘load’ terms based on the post. Yes, I’ll add this in to the next version
For now, can you change your code to not use get_fields (to get the post’s terms), but instead use get_the_terms WP function?
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
Helping others is a great way to earn karma, gain badges and help ACF development!
The ACF site is currently experiencing some issues.— Advanced Custom Fields (@wp_acf) September 21, 2022
We apologize for the inconvenience and we are working hard to get it back up and running as soon as possible.
© 2022 Advanced Custom Fields.