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!
❓Ever wondered when and why ACF uses JSON instead of the database? Check out our summary of the most recent session of ACF Chat Friday for the answer, and make sure to register for the next session.
— Advanced Custom Fields (@wp_acf) February 23, 2023
👉 https://t.co/3UtvQbDwNmhttps://t.co/wfFEVcXVKc
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.