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.
http://downloads.wordpress.org/plugin/advanced-custom-fields.4.1.8.zip
Same as the above, option is ticked. I rolled back to 4.1.8.1 and all seems well now.
Yeah fix does the trick. Interesting question about 4.1.8 and in 4.2
Thanks tomsel
Since the code of taxonomy.php
is same in 4.1.8 and in 4.2, why does it happen only while running 4.2? Both on WP 3.6..
Anyway, thx for fix, I ll give it try.
Okay, it was a simple fix. Until an patch is released for ACF, you can do the following:
Open up [WP DIR]/wp-content/plugins/advanced-custom-fields/core/fields/taxonomy.php
Edit lines 415, 419 and 424 and replace value="' . $term->id . '"
with value="' . $term->slug . '"
Hope that helps. ๐
This is an issue with WP1.6, I think.
I ran into the same problem when writing a custom import script. It seems when running wp_set_post_terms
you must use term names (slugs) rather than IDs.
Only the categories
taxonomy uses IDs, now.
Ref: http://codex.wordpress.org/Function_Reference/wp_set_post_terms
It seems the ACF plugin is setting the terms using the term IDs, rather than the slug. If that’s the case, should be a simple fix. ๐
Same here, with the โSave/Load to postโ option ticked.
Here, in the attachment, is my settings for taxonomy fields.
The bug occurs on regular webhosting as well as on local installation. Both Multisite version of WP 3.6.
Plugins I’m using:
Members
Multisite User Management
Peter’s Post Notes
WordPress Importer
Theme:
Required+
EDIT: The bug also occurs on regular clean WP 3.6 installation with Twenty Thirteen theme.
Hey mate, With the option ticked. Nathan
Hi @darkwoods
Have you read over this guide:
http://www.advancedcustomfields.com/resources/how-to/how-to-get-values-from-a-taxonomy-term/
This will explain how to load from a taxonomy term.
If this is not the correct answer, please re-explain your issue as it is very confusingly written in a repeating format that is hard for me to read and also understand when I read it
Thanks
E
Hi guys.
I don’t believe any code has changed in ACF to the taxonomy field, so I wonder if the issue stems from WP 3.6?
Thanks for the bug report.
This is already on the to-do list
Hey guys.
Is this with or without the ‘Save/Load to post’ option?
Hi @ManiakMill
Currently, the tab field does not work on the user or taxonomy pages due to the markup which these pages use.
I hope to add this functionality in soon.
Thanks
E
Yup, I have the same issue. I think it happens with a multiple values field type only.
Same problem here, let me know if I can help. Using it with custom taxonomies and checkboxes.
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 also am experiencing this issue and came on here to post the same item. I have the most recent versions of WP and ACF installed.
Hi,
I just wanted to report that I experience the same issue since the latest update. Really frustrating, I hope you can find the error and would appreciate it if you could solve the problem.
Thanks a lot!
Stefan
Hey elliot
I use v4.1.8.1, but it doesn’t show it in the selection:
(sorry for the german, but i checked all the options and with no one you got taxonomy-options added.
Does it have something to do with translation or do i have to activate it somewhere?
edit: ah, in german it’s translated with article-relation which is a bit confusing, maybe a change to “Taxonomie” would do better, but thank you very much for your support and your patience ๐
Hi @Christian01
Did you look at the last code example on the linked documentation article?
That example shows how to dynamically find the term_id and taxonomy.
All you need to do is swap get_field to get_field_object
Thanks for the bug report.
I’ll do some local testing and let you know what I find
Thanks
E
Hi @customaniac
ACF v4 comes with a taxonomy select field already!
Cheers
E
Dear elliot
That actually looks exactly like the functionality I need. Is it possible to include this taxonomy-selection into a field in ACF?
edit: ah, I see it probably is possible with this extension of the plugin: https://github.com/GCX/acf-taxonomy-field
Thank you very much for your help.
Best wishes
customaniac
Yep, this has been added to the to-do
Thanks
E
Hi @Christian01
Sounds like this guide will help you out:
http://www.advancedcustomfields.com/resources/how-to/how-to-get-values-from-a-taxonomy-term/
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.