Home › Forums › ACF PRO › How to wrap field groups? › Reply To: How to wrap field groups?
Could you please tell me where do you want to do it? If you want to do it in the front end form, you can always set the form
to false and use separated forms for each field group like this:
<form id="post" class="acf-form" action="" method="post">
<div id="field-group-1">
<?php
acf_form(array(
'form' => false,
'field_groups' => array('99'),
));
?>
</div>
<div id="field-group-2">
<?php
acf_form(array(
'form' => false,
'field_groups' => array('11'),
));
?>
</div>
<div class="acf-form-submit">
<input type="submit" class="acf-button button button-primary button-large" value="Update">
<span class="acf-spinner"></span>
</div>
I hope this helps 🙂
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.