In version 0.3+, the methods of calling this plugin have changed from previous versions. See page two of this post if you need instructions on how to use an older version of the plugin.
One of the problems with magazine-type WordPress themes has always been that they require more work than an average theme because of the extra image uploading.
I’ve always held the belief that you get back what you put in. The more time and energy you put in your site, the better it will look.
Of course, that’s just a lot of work sometimes, especially if you’re a more casual blogger and simply want your site to look good with extra images that make your posts stand out. My goal is to cut back on some of the work. So, I created a new PHP image script that should help out with that.
I’ve seen some other image scripts that do similar things, or even allow you to add one custom field and it resizes and crops the image for you.
This plugin will allow you to have full control over images displayed, or it takes the power of WordPress and uses its image cropping methods. This makes for a much smaller file size. Right now, the file is under 7kb.
What the plugin does
I like using custom fields to define images for my posts, so that’s what this script was built upon. So, the script looks for the custom fields Keys that you define. If that Key has a Value (should be an image URL), the image is displayed with your post.
If there is no custom field used, the script looks for the first image attached to your post. If there is one, then it grabs that image and uses it.
If there are no custom fields used or images attached to your post, the script has the capability of scanning the post for other images or displaying a default image that you’ve set.
If that’s all Greek to you, don’t worry; the
readme.html file included with the plugin will explain everything.
Download the plugin
Note to my theme users: If you’re using any of my themes, don’t install this plugin. This functionality is built into your theme.
- Description: This is a highly intuitive script that gets an image either by custom field input or post attachment.
- Requires: WordPress 2.9+
- Support: Support forums
- Download (WP.org plugin repository)
Please don’t use my contact page or the comments section below to ask support questions. Use my support forums at Theme Hybrid, which is where I handle all support questions for my WordPress projects.
Version 0.3: The default image and image scan features aren’t working.