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

Troubleshooting

Repeaters and rows

1 minute to read Updated 1 week ago

On this page

(array) $row gives garbage

A row is an object. Use $row->toArray().

$row + array( … ) fails

Same reason. Use array_merge( $row->toArray(), … ).

A repeater inside a repeater inside a repeater

Not allowed. Use a group to organize the third level. The builder tells you when you try, and a file that has one is refused naming the repeater.

have_rows() does not exist

There is no have_rows(). Use foreach ( ugly_rows( 'name' ) as $row ).

The rows are in the wrong order

Rows keep the order of the editor. Check you are not sorting them in your code.

Did this article answer your question?