Home › Forums › Add-ons › Repeater Field › Get repeater field values via Ajax › Reply To: Get repeater field values via Ajax
Yes, it is possible. You would need to pass the post ID to your function so that it could get the next item. Along with which you want to get.
A better choice, I think, than ajax would be to add it with just JavaScript. You could create a script that swaps the image and then using wp_localize_script()
https://codex.wordpress.org/Function_Reference/wp_localize_script you can add information about all of the images.
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.