Home › Forums › Front-end Issues › Load fields in front end form › Reply To: Load fields in front end form
I’m trying to do something similar I think. I need to insert a new post on the frontend. I’m doing something like the following:
acf_form(array(
'post_id'=> 'new',
'field_groups'=>array(123, $AllFieldgroupsAssignedToThisPostType)
);
How can I get the field_groups assigned to the post type?
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.