Advanced Post Image Plugin
This is the second plugin I’ve developed. It isn’t as popular as the WordPress Related Posts plugin, but it has been downloaded over a thousand times.
The Advanced Post Images plugin can generate thumbnails of the first image of the latest (number is set by user) posts and then links back to the them.
Installation and Usage
- Upload the advanced-post-image.php to the /wp-content/plugins/ directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Place <?php get_post_image_list(); ?> in your templates
- Create the folder thumb under the directory wp-content/uploads/ (set to 777)
If you want to control the number of thumbnails and the thumb image’s width and height, you can use the following four parameters in the function <?php get_post_image_list(); ?>
$image_number = 10 // the image number, default is 10
$thumb_width = 50 // the thumb image’s width, default is 50px
$thumb_height = 50 // the thumb image’s height, default is 50px
$type = “recent“ // the list’s type, “recent” displays latest post’s image while “random” display random post’s image
You can use the ul.post-image-list CSS selector to style the images list.
Download: Advanced Post Image Plugin
Demo
To see the plugin in action, click over to HoneyPiggy and scroll to the bottom. All those little images you see link to blog posts.
April 28th, 2008 at 7:46 am
nice work! maybe i can use this plugin to build a photoblog.
[reply to this comment]