When to use it. Keep several fields together under one name: an address (street, city, zip), a hero (title, text, button).
What the editor sees. A box with its fields inside.

| Name in files and code | group |
ugly_get() gives |
One row. |
| Behavior | cannot be required; can share a line with other fields; holds other fields |
In your theme
$address = ugly_get( 'address' ); // one row
echo esc_html( $address->get( 'street' ) );
$address->show( 'city' );
if ( $address->has( 'zip' ) ) { /* ... */ }Good to know
- A group can hold another group, and it can be inside a row of a repeater or a layout.
- It is saved the way ACF saves it (
name_sub,rows_0_name_sub), so values already saved keep showing.