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.

fw-post-image

Description

This plugin does not work with WordPress version prior to 2.9 !
Since WordPress 2.9, you can choose which image will represent a post and will be displayed as thumbnail. This plugin allows backward compatibility for your former posts.
It filters on the_post_thumbnail() function. If no post thumbnail is defined, the plugin will get the first image belonging to post. If it still doesn’t find any image, it will scan for the first image found post content.

The image will be displayed according to the arguments (size and attributes) set when calling the_post_thumbnail().

Screenshots

  • This is an example for displaying post thumbnails on the index page of your theme.

Installation

  1. Upload the fw-post-image folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Make sure your template supports post image by adding add_theme_support('post-thumbnails'); in the functions.php file of your theme.
  4. Put the template tag the_post_thumbnail($size, $attr) in the loop in your template where you want the post image to appear. For example :

FAQ

The plugin does not work
  1. Make sure you are running WordPress 2.9 or above
  2. Make sure your template supports post image by adding add_theme_support('post-thumbnails'); in the functions.php file of your theme.
  3. Put the template tag the_post_thumbnail($size, $attr) in the loop in your template where you want the post image to appear. For example :

Contributors & Developers

“fw-post-image” is open source software. The following people have contributed to this plugin.

Translate “fw-post-image” into your language.

Interested in development?

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

Changelog

1.2

  • Prevent error on getimagesize (line 92) when scanning post content for an image and finding an image which does not exist.

1.1

  • Changed filter name for post_thumbnail_html (previously post_image_html)
  • Changed action name for begin_fetch_post_thumbnail_html(previously begin_fetch_post_image_html)
  • Changed action name for end_fetch_post_thumbnail_html(previously end_fetch_post_image_html)

1.0

  • First plugin release (the 1.0 release should not work anymore)