Home › Forums › Add-ons › Repeater Field › Unique ID for repeater rows › Reply To: Unique ID for repeater rows
I did more digging and I think I might have made this work in a different way, by adding an Image subfield for each row and thus creating the relationship in the repeater, instead of the other way around.
In the gallery code, I can the use get_field to get all the rows and for every images search for a row which has a linked image ID matching the current one.
I’d still be curious to know if it could also be done the other way around.
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.