Home › Forums › Front-end Issues › Adding a post from the frontend › Reply To: Adding a post from the frontend
That depends the value you want to store.
If the post can only have one term in the custom taxonomy, or you want to overwrite any terms already assigned to the post, the you can use an ACF taxonomy field.
On the other hand, if you want to append the term to the other terms already assigned to the post the you need to use acf/save_post and call wp_set_post_terms() https://developer.wordpress.org/reference/functions/wp_set_post_terms/ with $append set to true.
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.