Get The Image WordPress Plugin

 
By 27 November 2008
SHARE :

If you download the original Simple Pro theme and activates it, you will not be able to see any thumbnails as you are currently seeing on this blog. Even if you use some of the themes from Revolution Two, you would still need to upload the thumbnails and then link the picture you uploaded using custom fields.

In this blog, whenever I upload any picture to any of my post, it will automatically display the thumbnails as you see in the picture above. To achieve that, I use Justin Tadlock get the image wordpress plugin.

How?
1. Upload and activate the plugin
2. Add this line of code to your index.php file, the place where you want to display your thumbnails
<?php echo get_the_image_link(array('Thumbnail','My Thumbnail'),'thumbnail'); ?> for my case, just before the_content
3. And finally modify style.css file to tell it to display it to the left or to the right and also the spacing between the image and text.

/* ---- get the image mod --- */
.thumbnail {
float:right;
margin: 0 0 10px 10px;
}

Get the image plugin allows you to work with custom fields if you prefer using it. I prefer getting the thumbnails which is much easier to manage. It also allows you to set a default image to be displayed if your post does not have any image. I didn’t upload any default, so when I didn’t post any image, no thumbnails will be displayed.

Since it is using thumbnails, you can further set your thumbnail size to suit your theme. From dashboard, go to setting, then miscellaneous and adjust accordingly.

Updated 2009-03-18 – I am currently using a new theme, Whitebeans.

THE AUTHOR
Hi, my name is Azwan and this is my blog :)
 
  • WhiteBeans | Blog.Azwan - February 11, 2009

    [...] is the 3rd month I am using WhiteBeans as my blog’s theme since Simple Pro. Like the simple design and the white background, but yet .. I am still able to distinguish which [...]

Add Comment