data-caption-title dynamically from exif data
-
Hello, all my photos are from external server, not in the WP media librairies.
They all hava EXIF metadata (“ImageDescription” and “XPComment”) that we want to put in the caption and description.I’m using exif.js to get the metatada (EXIF.getData) and then set attributes like this :
this.setAttribute('title', desc); // working this.setAttribute('data-caption-title', comment); // not working
When I inspect the element in the browser I can see that the data-caption-title attribute is there but we don’t see it in Foobox.
How can I do this.
Thank you
Caroline
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘data-caption-title dynamically from exif data’ is closed to new replies.