Home › Forums › Bug Reports › Taxonomies not saving for users › Reply To: Taxonomies not saving for users
OK. I see the problem. Unless WP were to update the term_relationships table so it could distinguish object_ids as belonging to a user or a post, the potential for conflict is unavoidable.
My main goal is to run taxonomy queries for a user. It would work about as well for me to run meta queries for a user except that ACF stores the taxonomy terms in a serialized array in the user_meta table. I don’t know of a reliable way to run a meta query that looks for a value in a serialized array. If ACF stored taxonomy term ids each as a separate user_meta fields, then I could effectively run a user meta query. I realize that would be a big shift for ACF and I don’t expect you to take it on.
I’ll likely solve this by creating my own user-taxonomy field. Since I know in my particular instance I won’t have term taxonomies shared between posts and users, I’ll probably store the taxonomy terms as such but I may explore storing them as separate meta fields instead. I very much appreciate that ACF is built with enough flexibility to make it straightforward for me to create my own field for this.
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.