Home › Forums › Front-end Issues › acf_form() fields option › Reply To: acf_form() fields option
Looking at your original code, to include just the fields elimiating the field_groups option should do what you want
<?php
acf_form(array(
'post_id' => 'new_post',
'fields' => array('field_55fbd2ec6359f', 'field_560e37f2d8763'),
'post_title' => true,
'post_content' => true,
'new_post' => array(
'post_type' => 'my_custom_post_type_name',
'post_status' => 'publish'
)
));
?>
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.