Linking pictures to themselves

By default, when you upload an image to use in a post, WordPress will link this to the image itself.

This may appear to be useful, because clicking on a re-scaled image can open the unscaled version.  But then the image alone is open in the window, and not the menus and sidebar of your blog.

I have often deactivated this feature so that the images are not clickable, but another solution is to use the “Post URL”.

The “Post URL” has two different formats.  Here are two examples:

http://www.diy-blogger.com/?attachment_id=456

or

http://www.diy-blogger.com/twentyten/changing-the-number-of-recent-posts/attachment/recent-posts2/

Linking the image to these URLs means that they will be shown within the blog theme with a description.  Setting the link is easy as well.  When you upload an image, “Post URL” is a button that can be clicked to automatically enter the URL in the link field.

Post URL Button

The result then looks something like this:

Post URL - the result

You see how the image has a title, and a back link to the post?

What do you think?  Is it a good idea to link images to themselves in this way?

About Graham Tappenden

Graham Tappenden is a blogger from Germany. He has written code for WordPress themes since 2006 and been creating websites since 1994.
This entry was posted in WordPress Basics and tagged , , , . Bookmark the permalink.