Get ID for previous/next image link
previous_image_link looks like it uses adjacent_image_link. You can probably do more with the post ID. This example shows how to get the previous and next post, then gets any image data out of the post thumbnail. While this doesn’t directly answer your question but I’m pretty confident you can use the ID to get what … Read more