admin wrote:
Do you mean image ID from WordPress database?
Yes, the image id from the WordPress database. Regarding id in the HTML image code, you can see the raw id in the gallery DOM on the following page:
joshjourney.com/favorites
It is wrapped with a div class 'image-id' for each image. I can even make the image id load into the top div '.tiled-gallery-item' if that helps. I have full control of the DOM/outputs on the post (it's a custom theme I made). I'm skilled enough to perform basic JavaScript/PHP operations but struggle with being able to have things like image title/caption in the lightbox. If I had the id placed within the lightbox this would allow me to write a hashChange jQuery script that checks if int, send to php file, check in php if int, then load author info, publish date, and other data back into a custom box on each image. If I can get image DOM elements/attributes into lightbox I could even bypass the need of another php file.