WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using WP 3.5.0, Wordpress galleries have been working fine. I use the Cleaner Gallery plugin and Lightbox to display galleries in lightbox mode.

Now I am using WP 3.5.1, a gallery I created on this page is output with inconsistant hyperlinks on the thumbnails.

Some point to a URL with format: http://test.incredibleconcepts.com.au/?attachment_id=2593

Some point to a URL with format: http://test.incredibleconcepts.com.au/exhibitions/inflatable_archway_06/

Both fail to load larger images in the lightbox, producing message "image cannot be loaded, please check the image filename and path and try again".

To me, the hyperlinks on the thumbnails are not correct, but I can't see why Wordpress would be producing this.

share|improve this question
up vote 2 down vote accepted

It looks like you have the gallery settings pointing to the attachment pages instead of the media files directly.

You can try this shortcode

[gallery size="full" link="file"]

instead of the default


if you want different sizes, you can change the size parameter to size="thumb", size="medium", size="large" or to the image-size-name you want to use.

share|improve this answer
Thanks birgire. I was choosing to link to the file when creating the gallery, but link="file" was not added to the shortcode. The same symptom has occurred for a 2nd gallery. – Steve Feb 7 '13 at 1:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.