When I use a repeater in a Block, the preview isn’t loading the data properly. For example: I have a Carousel block with a Text field and a Repeater field. The Repeater field contains an image field. When I add my new Carousel block to my page, I can edit just fine, I add a title and 2 photos within the Repeater field.
As you can see, the Title field outputs properly, but the Repeater array is not using keys I can use to access the photos and it is only returning the ID of the photo in the array instead of the Photo array that it is set to return.
I know this was asked about 3 years from the time of my comment but still I am going to post it.
Today I was doing something similar and I faced the same challenge, on the template to render I was using have_rows() function, I switched to get_field() and a traditional php foreach and the preview worked as expected.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users