Skip to content
Custom fields for WordPress that are quick to build and quick to load. Get Pro

Layout

Group

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

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