Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit 6b1e779

Browse files
author
Darren Jacoby
authored
Merge pull request #125 from clayton93/patch-1
Update README.md to explain ACF Clone fields
2 parents 9599675 + b2344a2 commit 6b1e779

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ class Single extends Controller
280280
}
281281
```
282282

283+
Clone fields will return the value of each the fields in a separate variable, unless the _Prefix Field Names_ option is enabled in which case the the cloned fields will be returned in an object with the field name given to the clone field.
284+
283285
The values are returned as objects, however you can disable this to keep them as arrays.
284286

285287
```php
@@ -288,7 +290,6 @@ add_filter('sober/controller/acf/array', function () {
288290
});
289291
```
290292

291-
292293
### Template Override Option;
293294

294295
You should only use overrides in edge-case scenarios. Sticking to the WordPress hierarchy is recommended usage. However, one edge-case is the 404 template.

0 commit comments

Comments
 (0)