# Clone

> Reuses the fields of another group: build them once, use them anywhere.

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

**When to use it.** Reuse the fields of another group (or some of its fields) here, without making them twice.

**What the editor sees.** The fields it copies, drawn as if they were here.

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

*The Clone field on an edit screen.*

|  |  |
| --- | --- |
| **Name in files and code** | `clone` |
| **`ugly_get()` gives** | The fields it copies, as if they were here. |
| **Behavior** | cannot be required; can share a line with other fields |

**Settings**

| Setting | What it does | Default |
| --- | --- | --- |
| **Group to reuse** |  | (empty) |
| **How it looks** | One box keeps the values together. The other mixes them in with the fields around. Choices: `{'value': 'group', 'label': 'As one box, with its own name'}`, `{'value': 'seamless', 'label': 'As if the fields were here'}`. | `group` |
| **Put the name of this field before theirs** | Only when the fields are mixed in. "phone" becomes "contact_phone", so two clones do not clash. | Off |

**In your theme**

```php
// If the clone shows its fields "seamlessly", they are here as normal fields:
ugly_show( 'address_line' );

// If it shows them as a group:
$address = ugly_get( 'address' );
$address->show( 'city' );
```

**Good to know**

- **How it looks:** `group` keeps them in a box under the name of the clone. `seamless` puts them straight in.
- **Put the name of this field before theirs** makes the names `clone_field`, as ACF does.
- A change in the original shows in every place that clones it.
