WordPress Gallery Shortcode with No Image Link

I was a little surprised today when I discovered that the wordpress shortcode for “gallery” had no option to have the images be no link at all, either fixed to “File” or “Attachment Page”. I’m not a fan of editing the core PHP, but this is definitely a wordpress shortage. Bummer about this hack is that if you upgrade WordPress, it’ll likely overwrite this change, but hey, my blog will still be here for ya. Here’s how to enable gallery link=’none’ to work:

UPDATE – No more changing WordPress Core Files! Let’s get smarter here. This is now a PLUGIN! Install by going to Plugins > Add New > search for “Gallery with No Image Links”

Whala – now you can use gallery link=”none” and the images not be forced linked to something.