Support

Account

Home Forums Front-end Issues No fields on frontend using acf_form() for new_post Reply To: No fields on frontend using acf_form() for new_post

  • Ah, I didn’t know I had to declare the field group. The example didn’t include it, so I wasn’t sure. Thanks!

    This is in a page.php template, but is for creating a post within a CPT ‘real-wedding’.

    So, now I have the fields showing up by adding the field_group:

    <?php acf_form(array(
    		'post_id'		=> 'new_post',
    		'new_post'		=> array(
    			'post_type'		=> 'real-wedding',
    			'post_status'		=> 'pending'
    		),
    		'post_title' => true,
    		'field_groups' => array('13612'),
    		'submit_value'		=> 'Submit'
    )); ?>

    The post_title field doesn’t show still though. Is there something else that needs to be done for that? Does it not show because the form isn’t embedded in the single-real-wedding.php file?