I recently added the Pinterest hovering Save button to the thumbnails on my Gallery. In the previous post, I described how to do that and how to get the button to be in the correct position on each thumbnail.
However, the pin description for every single pin in the gallery was the same, taken from the page description, which in my case is "quilts by Amy Krasnansky". I wanted to copy the gallery caption for the picture into its pin description. Here's the code I came up with to do that:
However, the pin description for every single pin in the gallery was the same, taken from the page description, which in my case is "quilts by Amy Krasnansky". I wanted to copy the gallery caption for the picture into its pin description. Here's the code I came up with to do that: