Home › Forums › General Issues › Create Category Tag/Term name from ACF Field › Reply To: Create Category Tag/Term name from ACF Field
You need to use wp_insert_term() to add the new term to the taxonomy. Before you add the new term I would check to see if it exists using get_term_by() on the new term slug. After you insert the new term or get the existing term then you need to wp_set_object_terms().
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.