Home › Forums › Front-end Issues › Displaying form on front end, location rules issues › Reply To: Displaying form on front end, location rules issues
I have a field group with 6 fields My acf_form code looks like this.
<?php acf_form(array(
'id' => 'POV-Travel',
//'post_id' => 'new_post',
'post_type' => 'pov_travel',
'new_post' => array(5),
'submit_value' => 'Submit'
)); ?>
So this will save the values from my POV-Travel field group to a new post type of pov_travel correct?
I’m trying to make sure the frontend piece is correct before I move on to the form processing code in the functions file.
The one problem I have seems to be if I uncomment the post_id line it breaks the form.
Any ideas?
Thanks for your help, I do appreciate it.
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.