Hi there-
I have an ACF repeater field with some sub-fields that I’m using to build a full height sections. I’ve created a button at the bottom of the screen that users will click to scroll to the next section. One of the repeater subfields is called “Section Title” and I’ve set the section IDs to be the looper index number. I’m wanting the text on the button to be “Next: Section Title of next item” and the link to link to the next item looper index number.
I know how to get this information for the current looper, but how would I pull the next info? Do I have to set a second looper provider and set an offset of 1?
Thanks!
Hello @katie_s_mills,
Thanks for writing in!
You can accomplish what you have in mind by nesting two Looper Providers. The 2nd Looper Provider will have to display only 1 items and have an offset of “{{dc:looper:index}}” .

So, if the current Looper Provider 1 index is 5, the Looper Provider 2 will have an offset of 5 items.
If you are still having issues, please provide access to your site so we can check your work and may be we can create a demo for you too!
Best Regards.
Thanks for that. I understand in theory - but here’s a specific application I can’t solve.
Using the slider element, I have a custom provider using ACF repeater field. In the slide, I want to have the next slide index number and title on the right. I tried setting up the second provider on a div within the slide using the same dynamic content string as the slide container, set an offset of looper index, and it causes a php error. Details in note
Hello @katie_s_mills,
You need to supply the same Looper Provider to be able to accomplish it.
The PHP error is because of your PHP Memory Exhaustion. Please have it increase to at least 900MB. Since you are running a nested looper.
Best Regards.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.

