Pages

Ads 468x60px

Sunday 9 September 2012

How to Adding Thumbnail Image on WordPress Themes

Some this blog’s reader who have downloaded the tricks theme ask to me “how to Adding Thumbnail Image on Tricks Theme“. Actually to display thumbnail image in the WordPress blog is easy just install the “Get the Image” plugin on WP blog and paste a small code in the WP theme.
Get the Image plugin is a small WP plugin to display thumbnail image easily in the WordPress blog and the plugin updated continuously. The latest version of the get the image plug-in has support for newest version of WordPress. This plugin can grab an image by custom field input, WP’s post image feature, post attachment, or extracting it from the post’s content.
After installing the plugin you can view thumbnail image in your blog like following picture

This tutorial can be applied on all WordPress blog with self hosting. If you have a WP blog on wordpress.com you can’t do this tutorial because wordpress.com not allow user to customize the themes and not allow user to install new plugin.
How to adding thumbnail image on WordPress Themes
It easy, if you are interested with this tutorial you can follow the following tutorial:
  1. Login to you WP blog
  2. Download get the image plugin and install and activate the plugin in your WP blog. You can download get the image plugin from this link: download get-the-image plugin
  3. Copy and paste following code to your WordPress theme where you want to display the thumbnail image in your WP theme then update the theme.
    <?php if ( function_exists( 'get_the_image' ) ) {
    get_the_image ( array(
    'default_size' => 'thumbnail',
    'link_to_post' => false,
    'width' => 135,
    'height' => 135
    ) );
    } ?>
  4. Refresh/reload you blog. Now you can see the thumbnail image has displayed in your blog.
Note: If you Tricks Theme, you can paste the code right before “<?php echo truncate($post->post_content,450); ?>” (view the picture)
thumbnail-image-script (FILEminimizer)
Maybe you are interested with other WordPress tutorial: How to Embed Adsense Search to WordPress Theme or if you are interested to install SEO friendly theme you can download the theme here: SEO friendly WP theme “Tricks theme V2”

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...
trickstipsall4u.blogspot.com Webutation
MyFreeCopyright.com Registered & Protected

M

ad

Contact Me

flagcounter

free counters