Easily associate any image to a post and display it in post excerpts, feeds etc.
You can use the WordPress plugin installer, or do it manually:
You can add
<?php custom_field_image() ?> inside The Loop in the theme files where you want them to appear. Be sure to check the settings so as not to have duplicate images.
For example, if you want them to appear only when viewing posts by category, add the above function to category.php in your theme directory and uncheck "Display in: content and/or excerpt" from the settings page.
You can also add
[cfi] where you want the image to appear in the post content (not excerpt). By default, it is inserted at the beginning.
There is also an additional template tag, called
get_custom_field_image() which you can use to display the images however you want. See
template-tags.php in the plugin directory for more details.
Requires: 2.8 or higher
Compatible up to: 2.8
Last Updated: 6 years ago
Active Installs: 700+
Got something to say? Need help?