Home › Forums › Front-end Issues › Display a new post form on taxonomy navigation › Reply To: Display a new post form on taxonomy navigation
For this you would use an acf/pre_save_post filter to create the new post.
http://www.advancedcustomfields.com/resources/acf-pre_save_post/
Then get the current term id for the page being loading and either set the taxonomy term for the post by using either standard WP function of using the ACF update field function to set a taxonomy field.
https://codex.wordpress.org/Function_Reference/wp_set_post_terms
http://www.advancedcustomfields.com/resources/update_field/
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.