Hi,
Taxonomy term metadata is now included in WordPress 4.4 and I wonder if ACF Pro meets the new WordPress Core standards related to termmeta implementation : add_term_meta () delete_term_meta () get_term_meta () update_term_meta ().
More info here : https://make.wordpress.org/core/2015/09/22/preparing-your-plugins-and-your-client-sites-for-termmeta/
Thank you.
ACF Pro will abide by the new API functionality for term meta come 4.4 🙂
Currently ACF does not create it’s own tables for term meta nor does it use clashing function names so I think even if it did not update for these new changes everything would still work meaning a client that updates WordPress but does not update ACF should still be fine (altho stupid).
Hope that’s the answer you were looking for!
I’ve noticed term meta is still being saved in wp_options. I’d really like to take advantage of a get_terms query using WP Meta Query. Is there a way to do that with ACF? Is there an ETA for when ACF will use the termmeta db table? Or am I doing something wrong?
Thanks v much.
Rich
Hi @richtelford,
Term meta is planned for version 5.5.
Currently Elliot is putting the finishing touches to 5.4 so right after that he’ll get started on development 🙂
I hope that satisfies your question!
That’s good news. Someone posted a workaround on these forums which bridges the gap for the time-being until it’s officially supported. I’m using that for now and it works well. Thanks for getting back so quickly and keep up the good work.. it’s such an awesome plugin.
@richtelford
Yeah I suppose you could always hook into the acf/save_post
action and save the meta to the term from there. I have not seen the workaround but I’m guessing it’s something like that.
In any case it should release quite timely with WP 4.6 that introduces the new WP_Term_Query
class 🙂
It was a solution posted in here by [email protected]:
https://support.advancedcustomfields.com/forums/topic/how-to-use-wp-term-meta-on-acf-the-easy-way/
Thanks. Looking forward to the update.
The topic ‘WordPress 4.4 & termmeta’ 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!
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.