The plug-in extracts the first image uploaded to a WordPress post by using a simple database query. Please note that the database order of the images is not influenced by the way you order your images in a post. The first image uploaded will remain the thumbnail, even if you place it at the end of your article. If you delete the first image, the second one will take its position. If no image at all is added to a post, the plug-in delivers a default image (a white WordPress logo with light grey background).
The title of the thumbnail is generated out of the post title. You can insert the image anywhere in your theme inside the wp-loop by adding a template tag to the source code. Please be aware that the plug-in does not scale or crop the images. It simply delivers the html tag. The styling is intended to be solved via CSS (-> Installation).
1. Upload “post_thumb” to the
2. Activate the plugin through the “Plugins” menu in WordPress
<?php post_thumb(); ?> inside the wp-loop of your template, where ever you want the thumbnail to appear.
4. A nice way to use this plugin is to link the images to the post by wrapping the plugin template tag into the post URL:
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php post_thumb(); ?></a>
5. Adjust display and image size using CSS. The plugin renounces on resizing the thumbnail because this can be done easily inside your style.css. You can use it at any place of your theme by giving it a
max-width value. The height will automatically be adjusted and, in the case that the image is more narrow than the
max-width, it will keep its original dimensions.