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.

WP Post Thumbnail

Description

WP Post Thumbnail plugin adds an image upload, crop and save panel in ‘Write Post’ screen. It allows you to easily upload a .jpg image file. Once the image file is uploaded, you can crop it before saving it as your thumbnail. That’s it.

Spend less time messing around with Photoshop everytime you need to make a thumbnail (or two) for your post. Also, saves you time and trouble from manually copy-and-pasting uploaded image URLs into custom key value fields.

For theme developers, particularly magazine-style WordPress theme developers, you can configure up to 3 different thumbnails to be used in each post. For instance,

  • a big 320px by 180px widescreen thumbnail for leading featured post to be displayed prominently on the front page.

  • a square 125px by 125px thumbnail for recent posts.

Dimensions as varied as your theme requires can be easily configured in an XML file. Save the file as ‘wppt.xml’ and put it in your theme’s folder (ideally, the main folder but any folder will do). WP Post Thumbnail will scan your theme folders, look for your theme’s ‘wppt.xml’ file and read your theme’s thumbnail(s) configuration.

Known Issues / Bugs

Uninstall

  1. Deactivate the plugin

Screenshots

  • WP Post Thumbnail 'out-of-box' default thumbnail in use
  • WP Post Thumbnail panel in 'Write Post' screen
  • A WordPress theme with WP Post Thumbnail configured to use 3 different thumbnails per post - 390x270px, 150x150px and 290x110px.

Installation

  1. Copy the wp-post-thumbnail folder into your ‘wp-content/plugins’ folder.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress. That’s it.

Note: The default thumbnail is 160px by 90px which floats to the top left corner of the content of your post.

If your WordPress blog uses a theme that comes with pre-configured set of thumbnail(s) to work with this plugin, the theme’s folder should contain an XML file called ‘wppt.xml’ created by the theme developer. In this case, it will override the default thumbnail.

For theme developers, more information on how to configure WP Post Thumbnail for your WordPress theme can be found in FAQ.

FAQ

I am developing a WordPress theme. How do I configure WP Post Thumbnail to work specifically for my theme?

This is the purpose of which WP Post Thumbnail is written, for theme developers who wants to use multiple dimensioned thumbnails in their WordPress themes. The current version of this plugin assumes that you, as theme developer, have basic knowledge of writing a configuration file in XML format and calling/placing the thumbnails’ custom field value within your theme.

For the visually inclined, click here to open an image that illustrates basically how theme developers can use WP Post Thumbnail to handle thumbnail(s) in their WordPress themes.

I have included an XML configuration file in the plugin’s main folder called ‘wppt.xml’:

<?xml version="1.0" encoding="UTF-8"?>
<wp-post-thumbnail>
    <pft_widescreen>
        <name>Widescreen</name>
        <desc>Recent posts</desc>
        <width>270</width>
        <height>110</height>
    </pft_widescreen>
    <pft_square>
        <name>Square</name>
        <desc>Category post and more</desc>
        <width>150</width>
        <height>150</height>
    </pft_square>
    <pft_rectangle>
        <name>Rectangle</name>
        <desc>Latest featured post</desc>
        <width>390</width>
        <height>270</height>
    </pft_rectangle>
</wp-post-thumbnail>

The sample XML file configures 3 different thumbnails titled <pft_widescreen>, <pft_square> and <pft_rectangle>.

The node titles are also used as custom field keys to call specific thumbnails to appear in your theme. For instance, to get the square thumbnail:

    <img src="<?php echo get_post_meta($post->ID, 'pft_square', true); ?>" />

Each thumbnail has four properties:

<name> specifies a friendly name to appear in the thumbnail tab in 'Write Post' area.
<desc> a short description about the thumbnail
<width> width of thumbnail in pixels
<height> height of thumbnail in pixels

IMPORTANT: All fields are required.

Save your file as ‘wppt.xml’ and put it in your theme’s directory. Blogs that uses your theme, and has WP Post Thumbnail plugin activated, will detect your ‘wppt.xml’ configuration file.

Where are all the cropped thumbnails stored?

They are stored in ‘wp-post-thumbnail’ folder inside your WordPress default upload path. Eg. '/wp-content/uploads/wp-post-thumbnail' by default.

Contributors & Developers

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

Translate “WP Post Thumbnail” into your language.

Interested in development?

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