An easy-to-use image script for adding things such as thumbnails and feature images.
*Get the Image* is a plugin that grabs images for you. It was designed to make the process of things such as adding thumbnails, feature images, and/or other images to your blog much easier, but it's so much more than that. It is an image-based representation of your WordPress posts.
This is a highly intuitive script that can grab an image by custom field input, WP's post image feature, post attachment, or extracting it from the post's content.
1. Upload `get-the-image` to the `/wp-content/plugins/` directory.
1. Activate the plugin through the 'Plugins' menu in WordPress.
1. Add the appropriate code to your template files as outlined in the `readme.html` file.
More detailed instructions are included in the plugin's `readme.html` file. It is important to read through that file to properly understand all of the options and how the plugin works.
== Frequently Asked Questions ==
= Why was this plugin created? =
Many magazine-type themes require a lot of work when inputting images to make them look good. This plugin was developed to make that process much easier for the end user. But, at the same time, it needed to be flexible enough to handle anything.
Other scripts are bloated and offer odd solutions. This plugin uses the built-in methods of WordPress to create things such as feature images, thumbnails, galleries, or whatever.
This plugin was created to be a lightweight solution to handle a very powerful need in the WordPress community.
= How does it pull images? =
1. Looks for an image by custom field (one of your choosing).
1. If no image is added by custom field, check for an image using `the_post_thumbnail()` (WP 2.9's new image feature).
1. If no image is found, it grabs an image attached to your post.
1. If no image is attached, it can extract an image from your post content (off by default).
1. If no image is found at this point, it will default to an image you set (not set by default).
= How do I add it to my theme? =
There are several methods, but in general, you would use this call:
<?php if ( function_exists( 'get_the_image' ) ) get_the_image(); ?>
To see all methods and options, refer to the `readme.html` file included with the theme download.
You can view this plugin in action on my <a href="http://justintadlock.com" title="Justin Tadlock's blog">personal blog</a> (note the thumbnails).