I've inserted a wordpress gallery in to my site (on a custom post type) using the editor. The code it's added is [gallery link="file"]. The gallery is displaying correctly, and when hovering over the images, I can see the correct URL for the large size image: "http://localhost:8888/mntn/wp-content/uploads/2012/07/P1000857.jpg".

However, when I click on the image, the larger image doesn't display. Alls that happens is that the url changes from:




The last number in that URL is incremented based on the image I click on. Any ideas as to what's wrong here?

  • Is the gallery supposed to show full image as thickbox does or you want to link to file directly.. ?
    – Amit Kosti
    Commented Jul 18, 2012 at 16:25

1 Answer 1


I think those extra parameters in url (after-#) are generated to make that plugin work with browser history. I think the plugin doesn't loading required javascript to popup full sized images. thats why it only updating url but not showing full sized image.

See the source code of page to make sure you're loading all necessary JavaScript files.

NOTE - Some plugin uses javascript to show full image on same page (without refreshing it). So when you browse through different images the url remains same and if you want to view last viewed image the browser back button won't work.

To make sure the browser back button work, the javascript add those extra parameters in url each time you open new image in gallery.

  • Hi Amit. I'm not using a plugin. This is the standard Wordpress plugin I'm talking about.
    – WouterB
    Commented Jul 18, 2012 at 17:02
  • From the links given in your question, It seems you are using - wordpress.org/extend/plugins/prettyphoto-media plugin make sure you're not installed it..
    – Amit Kosti
    Commented Jul 18, 2012 at 18:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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