Link gallery images to blog posts 2014 theme
-
Hi everyone,
I thought it would be really awesome to make a gallery with images from all my recipes and then have these images link back to the post where the recipe is.
I’ve managed to insert a gallery page but cannot link the blog post to the image. Is there a way to do this in the 2014 theme?
Any other tips or tricks on how to do something similar are welcome!
The blog I need help with is: (visible only to logged in users)
-
Hello! The gallery doesn’t currently allow you to link each image to different posts/pages. (I’ve added you to the list of users requesting this feature.)
I have two suggestions you could try to see if they work for you:
– Include a link in the caption for an image in your gallery. Like in this example where I’ve added one to the cupcake photo: https://cloudup.com/c51XhPRdFE8The complete text in the caption box there is:
<a href="LINKHERE">Link</a> in caption!That option requires two clicks anytime someone wants to get to a recipe post though, and I’m not sure it would be very obvious to readers how to use it.
Alternatively, instead of a gallery, you could create a page and use the Display Posts Shortcode explained here: https://en.support.wordpress.com/display-posts-shortcode/
For example, I created this page with a list of recipe posts including thumbnails of their featured images: https://curiousfacecase.wordpress.com/display-posts-shortcode-wimage-test/
Using this shortcode:
[display-posts category="recipes" image_size="thumbnail" wrapper="div"](There is more information & other variations you can create with the code on the Display Posts Shortcode support page.)
There are also some other threads discussing this feature request with some workaround ideas if you’d like to check them out: https://en.forums.wordpress.com/topic/link-gallery-images-to-pages-and-or-posts-or-external-url
Let me know if you have any questions! :)
-
Thank you so much!
The caption option was my idea as well but it seemed a lot of extra work, and supposedly you lose people with every click….
The thumbnail options may be better and looks relatively nice as well! Thank you again for these tips :)
-
-
Hi mam I have started new blog of trips I want to had some images to my blog please help me.
-
@jollytripcom — Hi! Please start a new thread with your question(s). Be sure to include a link to the site you’re working on and where you would like to add the images so we know how to help. :)
You can create a new post here:
https://en.forums.wordpress.com/forum/themes#postform
- The topic ‘Link gallery images to blog posts 2014 theme’ is closed to new replies.