This plugin is retired. Please use Post Thumbnails instead.
This is maintenance release. Luka Kladaric was kind enough to send in some bugfixes that went undetected. These are now baked into the plugin:
As announced here, this version will not work with WordPress older than 2.8.
This version adds the option to use the first attached image to a post as the displayed image.
Also, if you use get_custom_field_image() with format=html, you will get the same values that would be used by custom_field_image(). This allows you to format the image however you want.
The Insert CFI button should work with Internet Explorer again.
Version 2.0 adds a feature that should have been there from the beginning: instead of storing the image URL, it stores the image ID (for images uploaded to the site), along with the desired size.
You’ll notice the change when you use the Insert CFI button to add an image. Otherwise, you can still add the URL by hand.
A Default URL option was also added in this version, so that all posts can have an image, making your site more uniform.
The template tags have also changed, for the better, I hope.
These are the declaration for the template tags now:
custom_field_image($post_id = '', $defaults = ''); get_custom_field_image($post_id = '', $defaults = '', $format = 'html');
Say you want to override the default alignment. You can do that by adding this code:
If you also wanted to override the alt text, you would do this:
And so on, with any parameter: url, id, size, align, alt, link.
Props to Separatista for taking the time to make a Czech translation.
And props to Mike for pitching in with suggestions.
Finally, an update to my most popular plugin. Here is what’s happened:
If you’re writing a post and you upload an image, The (Insert CFI) button will be there. This is probably the most expected feature. Unfortunately, if you’re using the flash uploader, the button won’t appear immediately.
There is now a single admin page, with two boxes: one for settings and one for importing / exporting / deleting.
Last but not least, the plugin is now fully translatable.
All plugin features should work fine with WP versions older than the newly released 2.8, except for the CFI Loop widget.
PS: There’s also a new template tag:
get_custom_field_image(). You can find out more about it in
template-tags.php in the plugin dir.
This version of the Custom Field Images Plugin adds the CFI Loop widget. By default, it displays the 5 most recent custom field images, linked to their respective posts. If you’re familiar with the WordPress Loop, you can customize which images to show by filling the Query String field.
If you don’t like using widgets, you can use the new template tag
cfi_loop() directly in your theme files. You can find out more about it in the readme file.
PHP5 is required.
The new feature in version 1.7 is a button in the Upload/Insert Image box that inserts the image directly in the CFI box. Without it, you would have to insert the image into the post and then manually insert the bits of data into each field.
PHP5 is required.
Besides the built-in template tag,
custom_field_image(), now we have the
[<i></i>cfi<i></i>] shortcode, which means that not only can you put the image anywhere in the layout, but anywhere in the post content, too.
Easy install: theme code editing required only for advanced use.
Bulk management: import, export and delete images in one click.
Simple management box under the post editing screen: