I’m after this functionality too. Surprised it hasn’t made it’s way into ACF (even as a premium addon) after all this time and the demand.
I’ve created a new ACF taxonomy (checkbox) field and linked it to a WordPress taxonomy. Next I added an ACF checkbox field, added conditional logic, but I don’t see the ACF taxonomy. So I’m not sure if that idea of a workaround was ever going to work?
I’d like to add a vote for this as well.
That said, failing that, I’d like acf to include filters on conditionals in the same or similar manner as location choices. Currently it is fairly easy to write a plugin to hook into the location rule types, rule values, and rule match. As far as I can tell there is no way to accomplish with the conditional logic component. Of course, it is entirely possible that I’ve missed those filters.
In the meantime, I will probably just use http://www.elliotcondon.com/conditional-logic-for-advanced-custom-fields/
I’d like to add my vote for this… would be very very useful for a site I’m working on now. I’ll roll my own in the meantime – elliot, thanks so much for your hard work on what is without a doubt the most useful and innovative plugin in existence. Share the love!
To load the custom js I hooked into acf/input/admin_head, the docs here explain how to do that pretty well: http://www.advancedcustomfields.com/resources/acfinputadmin_head/
After that it was just vanilla jQuery to do the heavy lifting.
Hope that helps
EDIT – unfortunately my code is pretty specific to the fields and post types involved so what I’ve written isn’t something you could really copypasta into your own project – but hiding / showing divs using jQuery is something you’ll be able to find plenty of help with online.
The only difficult part is finding out what the IDs of the fields and containing divs are, you’ll need to spend some time in Firebug to get an idea about what to target.
The topic ‘Conditional Logic using Taxonomy field’ 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!
Big news today folks! I'm very excited to announce that the Delicious Brains plugins including Advanced Custom Fields and WP Migrate are now part of the WP Engine family of products.🎉 Check out the full blog post for the details: https://t.co/tcMVq42g7d pic.twitter.com/uCF3ZpKXgT— Delicious Brains Inc (@dliciousbrains) June 2, 2022
© 2022 Advanced Custom Fields.