WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

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?

share|improve this question
Is the gallery supposed to show full image as thickbox does or you want to link to file directly.. ? – amit Jul 18 '12 at 16:25

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.

share|improve this answer
Hi Amit. I'm not using a plugin. This is the standard Wordpress plugin I'm talking about. – WouterB Jul 18 '12 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 Jul 18 '12 at 18:29

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.