Support

Account

Home Forums Front-end Issues Form custom fields not working Reply To: Form custom fields not working

  • Im supplying the field groups ID as shown below. All ACF fields are not showing on the form.

    <?php
                     acf_form(array(
                         'post_id' => 'new_post',
                         'field_groups' => 7955, // Used ID of the field groups here.
                         'post_title' => true, // This will show the title filed
                         'post_content' => true, // This will show the content field
                         'form' => true,
                         'new_post' => array(
                             'post_type' => 'auto_team',
                             'post_status' => 'publish' // You may use other post statuses like draft, private etc.
                         ),
                         'return' => '%post_url%',
                         'submit_value' => 'Submit Staff',
                     ));
                
            ?>