Linking gallery images to parent post and not the image/gallery
-
Hey everyone –
Right now we’re using the gallery shortcode to output a 4-column gallery of thumbnails like so:
[gallery columns="4"]
But have noticed that the thumbnails are linking to a permalink for each image. We’d ideally like to link to the parent PAGE instead. Is this possible?
Example –
GOOD: https://www.site.com/2009/07/permalink-to-post.html
BAD: https://www.site.com/2009/07/permalink-to-post.html/imagename111Is there a setting for the shortcode that would do the first instead of the second? The only option I’ve seen is for a link attribute being set to “file” … and haven’t found another possible attribute like url, or permalink, or parent. Any ideas?
Thanks everyone!
- The topic ‘Linking gallery images to parent post and not the image/gallery’ is closed to new replies.