Home › Forums › Front-end Issues › Using acf_form for multiple post_type › Reply To: Using acf_form for multiple post_type
Thanks for the response. Sorry for the confusion.
My post referred to this post:
http://support.advancedcustomfields.com/forums/topic/my-frontend-form-is-prefilled-with-previous-entries-all-the-time/
And your answer:
multiple pre_save_post
The trick here is to use the ‘html_after_fields’ arg to add in a hidden input with a custom value. This will get posted to the save action which you can then use to determine which form has been posted.
I’d like to know how to have multiple front-end forms that each create posts of different custom post types. Your response naveen009 suggested that the solution lies in the html_after_fields; but whatever the solution, I’d like to learn!
Thanks again for a great plugin.
Enrico
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.