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?
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.