This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Automatic Post Thumb

Description

The plugin extracts the first image uploaded to a wordpress post by using a simple database query. You are not obliged to insert it into your post, but of course you can do so. 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 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 plugin delivers a default image (a white wordpress logo with light gray 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 plugin does not resize or crop the images. It simply delivers the html tag. The styling is intended to be solved via CSS (s. “Installation”).

Please report bugs at the plugin’s homepage.

A brief Markdown Example

<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php post_thumb(); ?></a>

Installation

  1. Upload “post_thumb” to the “/wp-content/plugins/” directory

  2. Activate the plugin through the “Plugins” menu in WordPress

  3. Place “<?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>

  1. 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 used 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.

FAQ

Not yet available.

Contributors & Developers

“Automatic Post Thumb” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Automatic Post Thumb” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.