Home › Forums › Feature Requests › Wrap field groups in unique divs with acf_form() (working feature code included) › Reply To: Wrap field groups in unique divs with acf_form() (working feature code included)
That’s looks great!
My only suggestion would be checking for a false value (even though it’s the default if the setting is omitted) in api-template.php on lines 1386 – 1401 using something like this:
if( !empty( $args['wrap_field_groups'] ) && $args['wrap_field_groups'] !== false ){
...
Otherwise passing a value of false would still cause the wrappers to be output.
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.