Home › Forums › Add-ons › Gallery Field › Gallery Field options per image › Reply To: Gallery Field options per image
I was thinking about this and went ‘aha’ when I realized you were talking about reordering the repeater when the images were reordered by dragging them. That’s really uncharted territory. My little trick only works because I’m triggering the click event on ACF links that are there to delete and add rows to a repeater. Detecting that the order of the images in the gallery have changed and reordering the repeater based on that will be a lot more complicated than my examples.
Does it matter if the order is the same or just that there is one row for each image in the gallery so that you can match up the image ID’s and get the number of columns? Maybe dynamically set the order of the repeater with an acf/load_value filter the next time the page loads?
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.