WordPress Plugin Thumbnails Anywhere
Plug-in Name:
Thumbnails Anywhere
Plug-in functions:
Plug-in Download:
Version 2.1.11 Download:
http://niaolei.org.cn/wp-content/uploads/2009/08/thumbnails_anywhere.zip
Plug-in installation:
Plug-in use:
1. Home Thumbnails
Code:
<?php if ( function_exists(‘thumbnails_anywhere_for_homepage’) ) {thumbnails_anywhere_for_homepage();} ?> <? php if (function_exists ( ‘thumbnails_anywhere_for_homepage’)) (thumbnails_anywhere_for_homepage ();)?>
Placement: on the homepage template index.php, placed the_content or the_excerpt before, such as:
<?php if ( function_exists(‘thumbnails_anywhere_for_homepage’) ) {thumbnails_anywhere_for_homepage();} ?> <? php if (function_exists ( ‘thumbnails_anywhere_for_homepage’)) (thumbnails_anywhere_for_homepage ();)?>
<div> <div>
<?php the_content(__(‘Read the rest of this entry »’)); ?> <? php the_content (__(‘ Read the rest of this entry »’));?>
</div> </ div>
<div> </div> / / If the style stays out, please fill the phrase used to clear the style.
Can also be placed in the category template file or label template file (usually archive.php), In short, everything that contains the_content or the_excerpt of the places can be placed, professional speaking, within any loop can be placed.
2. Random Thumbnail:
Code: (support side column)
<?php if(function_exists(‘thumbnails_anywhere_for_random_posts’)) { thumbnails_anywhere_for_random_posts(); } ?> <? php if (function_exists ( ‘thumbnails_anywhere_for_random_posts’)) (thumbnails_anywhere_for_random_posts ();)?>
Placement: anywhere.
3. New Thumbnail:
Code: (support side column)
<?php if(function_exists(‘thumbnails_anywhere_for_recent_posts’)) { thumbnails_anywhere_for_recent_posts(); } ?> <? php if (function_exists ( ‘thumbnails_anywhere_for_recent_posts’)) (thumbnails_anywhere_for_recent_posts ();)?>
Placement: anywhere.
4. Related Thumbnail:
Code:
<?php if(function_exists(‘thumbnails_anywhere_for_related_posts’)) { thumbnails_anywhere_for_related_posts();} ?> <? php if (function_exists ( ‘thumbnails_anywhere_for_related_posts’)) (thumbnails_anywhere_for_related_posts ();)?>
Placement: Log page template (single.php) anywhere.
5. Category Thumbnail:
Code:
<?php if(function_exists(‘thumbnails_anywhere_for_category’)) { thumbnails_anywhere_for_category(); } ?> <? php if (function_exists ( ‘thumbnails_anywhere_for_category’)) (thumbnails_anywhere_for_category ();)?>
Placement: Category page template (usually archive.php) anywhere.
In addition, the plug-in call with parameter provides a way (without the parameters, using the background set): followed by the number of num, width width, height height.
thumbnails_anywhere_for_random_posts(‘num=10&width=100&height=50′) Random Thumbnail: thumbnails_anywhere_for_random_posts ( ‘num = 10 & width = 100 & height = 50′)
thumbnails_anywhere_for_recent_posts(‘num=20&width=200&height=60′) Latest Thumbnail: thumbnails_anywhere_for_recent_posts ( ‘num = 20 & width = 200 & height = 60′)
thumbnails_anywhere_for_related_posts(‘num=30&width=150&height=70′) Related Thumbnail: thumbnails_anywhere_for_related_posts ( ‘num = 30 & width = 150 & height = 70′)
Category Thumbnail: thumbnails_anywhere_for_category (5) shows a thumbnail of classified ID as a 5, location, any place. You can even make a simple classification album.
The corresponding parameter values can be changed to give you full freedom.