I had all my gallery images linked to the attachment page using the default ‘image links to attachment page’ in the media uploader.
When I upgraded to WP 3.1.1 all the ‘links to attachment’ links are gone and no longer work. I tried creating a new gallery and checked ‘images link to attachment page’ and none of the images actually link to the attachment page and instead link to the image file.
I do have an attachment.php in my theme but all the gallery images actually link to the image file and not the attachment page. I can’t figure out why or how to fix. Any ideas?
There isn’t an “image links to attachment page” in WordPress by default. There are just 3 options: File Url, Post Url or None. And the default gallery works by displaying all images uploaded via Add Media whilst working on that page.