Home › Forums › Front-end Issues › create new taxonomy with acf form not new post › Reply To: create new taxonomy with acf form not new post
To to this you will need to
1) set the “new_post” argument to acf_form() something unique, like “new_narocilnice”
2) Supply the field groups or fields you want to display setting either the “field_groups” or “fields” arguments
3) Create an acf/pre_save_post filter https://www.advancedcustomfields.com/resources/acf-pre_save_post/ that looks for your unique “new_post” value
4) Create the term in the your filter
5) The return post id from your filter needs to be “term_{$term_id}”
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.