
Description:
Displays the first image used inside a post as a thumbnail on a page that lists posts (inside the loop, such as archives, category pages, or any page that displays excerpts). If no images are found, nothing is displayed. You can set a few options such as randomly selecting an image from the post and setting custom CSS id/class or in-line styles.
Usage:
Upload exthumb.php into your plug-in folder and activate as usual. Then, inside the loop, place this piece of code where you want the thumbnail to appear:
<?php exthumb($post->ID, "style=\"float:right;\"", false); ?>
Options:
There are a few options you can pass along:
- “post_id” (required: $post->ID)
- “image_attributes” (example: “style=\”float:right;\”") Note that you’ll need to escape any double quotes you use with a back slash
- “sort_images_randomly” (true = will display a random image from inside the post. false = will display first image inside the post. Defaults to false.)
Download Excerpt Thumbnails (v1.0)
3 Responses
Sorry I’m a total noobie…where do I put
ID, “style=\”float:right;\”", false); ?>
To have it show up in my archives. I see no place in the loop?
Thanks for your time. It looks perfect for what i need
Hello, your plugin is great, i had it running on my site, but i tried to download again and the link to the zip file seems to be broken.
Thx
I’d like to download it as well! Zip file link is broken!
Leave a reply
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.
search
Categories
Archives
Pieces of Flair
Projects
Stuff to click
LifeStream
All Content © 2008 NoahCoffey.com
Theme © 2008 Performancing's Story Theme. Original Design by Design Disease.
Endlessly tweaked by Noah Coffey. Powered by WordPress and LiquidWeb Hosting.