Gallery images link to attachment_id instead of image url…
-
Hi, thanks for reading.
I’ve been using gallery shortcodes wired directly into single post template files for a while now, with no issues whatsoever. (eg. https://www.tvbomb.co.uk)
So it surprised me recently as I was building a new site with this technique, to find that instead of linking to the image file, gallery thumbnails were automatically linking to an attachment id, for example:
https://wordpressblog.co.uk/blogfolder/?attachment_id=17
instead of
https://www.wordpressblog.co.uk/blogfolder/wp-content/uploads/2009/10/image_title.jpg
This means that there’s another page to click through to get to the full size (or lightboxed, in this case) image.
I’ve no idea why this has started happening, I’m using clean installs of 2.8.5, no plugins for testing, and have created the theme from scratch (so there are no weird behaviours I’m unacquainted with).
I’ve tried setting the image URL in the media manager for a post to ‘file url’ but this makes no difference.
Probably I’m missing something embarrassingly obvious, but it’s annoying, so if anybody has any ideas of what could be doing this, or has experienced the same problems, I’d be real happy for y’all insights.
Appreciated,
J
- The topic ‘Gallery images link to attachment_id instead of image url…’ is closed to new replies.