Support

Account

Home Forums ACF PRO How to wrap field groups? Reply To: How to wrap field groups?

  • Hi @amitbiswas06

    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 🙂