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',
));
?>
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.