Show all available image sizes

If you are fond of photography, you will probably use the service of Flickr where you can easily upload your photos and other people visualize them in presentation mode or by image size. Also, it is possible, that you use WordPress to show your best photos in a blog or personal portfolio which always positions better in the search engines.

If this is your case surely you will miss some Features of Flickr in WordPress and one of the most obvious is power show the visitor all available sizes of the image .

As you already know, and if we do not remember, when you upload an image WordPress stores several versions of it. The object of this is to offer you several sizes to insert in your entries, and that you do not have to resize by HTML thus reducing the page load. Of course, you can always link a smaller size to the full image size, or another, from the WordPress image loader.

Then, this is shown on the attachments page, usually managed by WordPress themes using a file usually called attachment.php or image.php . What happens is that, generally, only the linked image will be shown, without giving you more options. Let's fix it …

The first thing you have to do is open the file functions.php and add the following:

We save and that's it, now when someone clicks on an attachment you will have the possibility to view all the sizes of the image.

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

Gallery WordPress Theme

Wonderful theme that Nikko discovers in Xibernetics : Gallery . A joy, special for Portfolios, Fotoblogs or whatever you want. Here you have the demo and here the download link .

The entry Gallery WordPress Theme published it first Fernando Tellado in Help WordPress . Do not copy content, do not say anything good about you to your readers.