Home › Forums › Add-ons › Repeater Field › Register a repeater field › Reply To: Register a repeater field
When I have these type of question I go into ACF admin and I crate a similar field set the way I want it to be and then export that to PHP to see what the code should look like.
A repeater is just like any other field except it has an index named “sub_fields” that is an array of fields defined in the same way as they would be when not in a repeater.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.