Support

Account

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.