Home › Forums › Front-end Issues › Manage taxonomy terms on the front end › Reply To: Manage taxonomy terms on the front end
The first step with creating a front end form to allow users to edit a term would be supplying the correct post ID when calling acf_form().
For an existing term the post ID you need will be "term_{$term_id}"
For allowing them to create a new term you would need to build a pre_save_post filter that creates the term and sets the correct post ID to be returned to ACF so that it can to the updating https://www.advancedcustomfields.com/resources/acf-pre_save_post/. In this case you would use something like "new_{$taxonomy)_term"
for the post ID and use this in your conditional at the beginning of your filter.
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.