# Group

> A box that keeps several fields together, with one set of values.

Source: https://uglydev.com/field-types/group/
Updated: 20 November 2026

**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.

![The Group field on an edit screen](https://uglydev.com/wp-content/uploads/2026/11/shot-group-1.webp)

*The Group field on an edit screen.*

|  |  |
| --- | --- |
| **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**

```php
$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.
