May 02

Lately I’ve been experimenting with WordPress galleries, for managing pictures. It’s a bit limited in terms of formatting the output of the gallery, but it’s simple enough for everyday usage. One of the minor bugs is that you can’t have the image not linked. Sators to the rescue! Here’s a little hack to fix that:

WordPress Gallery Shortcode with No Image Link

Unfortunately, this involves modifying one of the core files of WordPress, so you will lose the change every time you update to a new version. Maybe we’ll get lucky and future versions of WordPress will include this feature!

Also, here is the documentation page for using gallery shortcodes:

Gallery Shortcode

These shortcodes allow you to display a gallery in a page or post. The trick to setting up a gallery is to go into Media, Library and attach photos to a post or page. The shortcode will display all of the photos (or other media) that are attached.

Share: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Bloglines
  • Furl
  • Slashdot
  • YahooMyWeb
  • StumbleUpon
  • Taggly
  • Technorati

Leave a Reply