Hello!
I’ve found a few topics related to this question but none of the answers are exactly what I’m looking for.
I would like to use the Repeater Field for creating a list of content, along with anchor links to sections in the sidebar. I’ve done this in the past by creating a textfield and entering in a ID friendly name.
Is there anyway to output the row number of a repeater field or something else that would work as an ID? Even if it requires some PHP magic that’s fine. I would like to avoid creating a separate ID field since this will be client facing.
Thanks!
Hi @emaildano
This thread is a very good example of how you can use a variable counter as the row ID to link to parts of the page!
http://support.advancedcustomfields.com/forums/topic/getting-instance-and-sort-of-id-of-repeater-field/
Hope that helps.
Thanks
E