Home › Forums › General Issues › How to use update_field($field_taxonomy, $term_taxonomy, $post_id)? › Reply To: How to use update_field($field_taxonomy, $term_taxonomy, $post_id)?
Time is going… So, at first, this is for User Object.
If you will use get_field() you will get OBJECT, but if you will set update_field() you must put ID or ARRAY_OF_ID (for multiselect field). It isn’t clear for using and I didn’t see an ACF tutorial for it.
Will be great have a fine tutorial in Documentation “How to use update_field() for complex objects like User, Taxonomy, etc”. Because in wp-admin you just click mouse & select, but in code you must use correct format $value.
At second, the question about “update_field() with field_taxonomy” is open.
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.