I am trying to retrieve a value from a repeater sub-field to re-use outside of my repeater loop. Basically, I have two UL’s. The first is a list of slides, which I am using a repeater for. The second, is a custom navigation of the slide.
I was thinking that I might be able to save the field content as a variable, but I do not understand how I might be able to save the correct field data from a specific row in the repeater.
This is my code as of now, the .nav-slide UL is where I want to re-use the data.
I personally don’t use these functions, i use standard php foreach loop.
Repeater field, especially when it’s nested returns very complex multidimensional array, so maybe first try to simplify your array.
Or you can maybe try to access it like: field[tab1][value1]
Viewing 2 posts - 1 through 2 (of 2 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