Home › Forums › Add-ons › Repeater Field › Create Image Mapper/Hotspot with repeater › Reply To: Create Image Mapper/Hotspot with repeater
You can fetch the image url with javascript and print it as an img tag..
I can’t say for sure how to get the image url since I cant see your setup in admin but try to figure out how to get it by:
var imgURL = $('your image object').attr('href');
//Then print it in your popup doing something like this (again, you'll have to change the target object to be correct
$('target object popup').append('<img src="' + imgURL + '" alt="" class="targetimage" />');
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.