Archive

Posts Tagged ‘Thumbnails’

WordPress Plugin Thumbnails Anywhere

September 20th, 2009 carlgreat 1 comment

Plug-in Name:

Thumbnails Anywhere

Plug-in functions:

  • Call log the contents of the pictures show the log thumbnails, thumbnail links to the original logs, or the original larger image.
  • Home Thumbnail: Home Each log displays thumbnails.
  • Random Thumbnail: Call random log thumbnails, full stop anywhere on the display.
  • Latest Thumbnail: Call the latest log thumbnails, full stop anywhere on the display.
  • Related Thumbnail: Call-related log thumbnails for the log pages.
  • Category Thumbnail: call log thumbnails under the current classification for the classification page displays; call logs under the specified categories thumbnails, full stop anywhere on the display.
  • Thumbnail any specified quantity, size, distance.
  • Specified the first picture shows the log or logs of arbitrary images.
  • Support for sidebar.
  • Support the classification name and label name to exclude the log thumbnails.
  • For the station images, automatic generation of thumbnails; for the outer chain of images, automatically downloaded to the local, automatically generated thumbnails.
  • Right Yupoo, Flickr, Picasa pictures outside the chain, to provide special support can be directly outside the chain of reference to the thumbnail.
  • Plug-in Download:

    Version 2.1.11 Download:

    http://niaolei.org.cn/wp-content/uploads/2009/08/thumbnails_anywhere.zip

    Plug-in installation:

  • Background installation, activation;
  • Settings: Options – thumbnail;
  • Place code or in the background and a small tool to enable the sidebar;
  • Back to the home page points to open a few logs; / / This step can not be omitted.
  • 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 &raquo;’)); ?> <? 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.

  • Categories: Web Tags: