Home › Forums › Front-end Issues › problems with post edit/add › Reply To: problems with post edit/add
Hi @savvaskef
The code:
$args = array(
'post_id' => 'new',
'field_groups' => array(109,108 )
);
acf_form( $args );
Is simple and should work. Can you confirm that you have 2 field groups with ID’s of 109 and 108? If these are not loading, there is another issue going on here. The easiest way to debug this is to jump into the core/api.php
file and find the acf_form function. There will be some code which uses the field_groups param to load in the field groups via a filter. Perhaps you can debug the result?
Thanks
E
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.