• Sponsors


  • Make Revolution Lifestyle Theme show thumbnail automatically with Get The Image plugins





    So many reader miss understanding with my previous post (about studiopress church wordpress theme), maybe you are one of them. That post goal is showing that thumbnail in that theme not only for an image that stored inside its own host, but it can show other hosted image (example, amazon image). In that post, i try to show modify the theme to get thumbnail from Custom Fields area.

    The point is, even you do editing home.php files just like i describe, your thumbnail will not shown if you not add specified custom fields with image url as the value.

    In this post, i will describe new technique to show thumbnail using plugin aid. This plugin called : Get The Image. Actually, i have use this plugins to modify the previous theme that shared here, but in this case, i want to make the tutorial, how to use it.

    How to Show Automatic Thumbnail with Get The Image Plugins :

    The original script to call get the image is :   <?php get_the_image(); ?>

    If we want to specify the image size to show, you should use this (assume 200×200 px pics) : <?php get_the_image( 'width=200&height=200' ); ?>

    Example to change the original script at Revolution Lifestyle Theme :

    See this inside home.php file

    <h2>Featured Category</h2>
    <?php $recent = new WP_Query("cat=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
    <a href="<?php the_permalink() ?>" rel="bookmark"><img style="padding:5px 0px 2px 0px;" src="<?php echo get_post_meta($post->ID, "left feature", true); ?>" alt="<?php echo get_post_meta($post->ID, "Theme Name", true); ?> Thumbnail" /></a>
    <h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    <?php the_content_limit(175, "[Read more]"); ?>
    <?php endwhile; ?><br />

    We need to change the script that use to call the thumbnail. Just to inform you, that Get The Image plugin will show thumbnail and show it as a link also. so, you need no add “<a href” code more

    Change that code into
    <h2>Featured Category</h2>
    <?php $recent = new WP_Query("cat=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
    <?php get_the_image( 'width=200&height=200' ); ?>
    <h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    <?php the_content_limit(175, "[Read more]"); ?>
    <?php endwhile; ?><br />

    Please do some research what is the perfect picture size, see your theme manual. With this modify, your theme will show any image that include inside your post as a thumbnail. No need to add any custom fields.

    Once again, i make this post as an example, just for give you an idea, how to make it. Feel free to expand your creation about this. You can use this trick to almost all theme

    If you need the example of the script that implementing at home.php file, you can download it below.

    Want to rate this post? use this

    1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 5.00 out of 5)
    Loading ... Loading ...

    FYI : you must download get the image plugin here

    Only registered member can view this content. Please Login or Register first.

    Author: cahyo on April 12, 2010
    Category: themes
    Tags: , , , , , , , , , , , , , , , , , , ,

    Facebook comments:

    63 responses to “Make Revolution Lifestyle Theme show thumbnail automatically with Get The Image plugins”
    1. bluntpeak says:

      Just what I was looking for today –

      Saved me a bunch of work coding this by hand to grab images in wp robot posts

      Thx

      [Reply]

      cahyo Reply:

      u’re welcome bro

      [Reply]

      zek Reply:

      can i update get the image pluin? or let it be old version?

      [Reply]

      cahyo Reply:

      do not update the plugin.
      when u update the plugin,.. you must change the code inside the home.php file that i has give.
      newer plugins use different code.

      but as long as you can read the plugins guidance, you still can do it

      zek Reply:

      bro,
      i’m using as attached on your blog post. but no luck to have pic.

    2. zek says:

      I’m trying install here: http://multi.tambun.info/ but no pic show. FYI, i’m using your home.php and get the image without update. So, what;s you opinion about image not shown?

      [Reply]

      cahyo Reply:

      wakaka,..
      of course the thumbnail will not show,..
      just see this article : http://multi.tambun.info/baby-shower.html
      is there any image inside that post?
      so, what thumbnail will be captured to show in homepage?

      do not forget to activate get the image plugin also

      [Reply]

      dowe Reply:

      hi Zek..
      how to create bground imge for you adsense (below carousel widget) at http://multi.tambun.info/ ???

      thanks…

      [Reply]

    3. zek says:

      Bro,
      is it i must used amazon.php file as use at church theme?

      [Reply]

    4. zek says:

      Any suggestion bro? u want to login into my wp admin?

      [Reply]

      zek Reply:

      is it i need to change “largeimage” into “thumbnail” in home.php? is that for amazon only right?

      [Reply]

      cahyo Reply:

      no need custom fields at all.
      as long as there is an image inside post (where ever it come from), it will drawn as thumbnail

      [Reply]

      cahyo Reply:

      send it to me bro

      [Reply]

      zek Reply:

      sent details. Check ur email bro

      [Reply]

      cahyo Reply:

      problems solved!
      you can check by create new post

    5. Silent Fox says:

      @Cahyo, your comment space has been attack by spammer…lol!

      I have 2 questions for u…

      i try to use get the image plugin for my article and amazon post…it works! great about that…so simple instruction…

      but when i tried to post video from youtube (homepage bottom on studiopress theme) using youtube module, the thumbnail is not appear…

      do u think that get the image plugin is not work for youtube thumbnail? i assume that we have to insert custom field key to use youtube module…same as your previous church theme post thumbnail…or u have other solutions?

      2nd question is about WP Robot…i use amazon module and this is my format:

      {largethumb}
      {description}
      {features}

      {link}

      ————————————-

      but when i put description 1st before feature, the description on homepage looks so messy…something like this:

      Product DescriptionSuper Slim is a revolutionary bla…bla…

      any ways to remove “product description” word from home page post description?

      if nothing, so i need to put feature 1st than description later…lol!

      [Reply]

      cahyo Reply:

      1. Spam comments? right!. I keep their comment, but i remove their url :P {comment count could rank that post up)
      2. To show the youtube thumbnail, you should use custom fields area, and for the other image, let the Get The Image plugin handle it

      example :
      if there is customfield called “videoid”, then show it using this image (assume that “videoid” is image from youtube)
      else, call the get the image plugin

      3. I have no idea to remove the Product Description., all i do is change the format :

      < img src= "{largethumb}" alt="{title}" / >
      {features}
      {description}

      Price : {price}
      {link}

      [Reply]

      Silent Fox Reply:

      Thanks for respond…

      [Reply]

    6. Silent Fox says:

      Hi cahyo…
      i notice that Get The Image plugin keep notify me to update to a new version…not so good a think…

      and i notice that u suggest us not to update the plugin…can u adjust that code to suit the latest plugin version…maybe the latest version has extra advantages that i don’t know what it is…maybe u know…

      [Reply]

      cahyo Reply:

      i don’t know it either bro,…
      so,..
      i don’t want to test the new plugin.
      i am afraid when i change to the newer plugin, then they make new update again, they change the code again.
      so,..
      as long as this version works, i will not update it.

      [Reply]

      Silent Fox Reply:

      ok, i understand that…i’ll stick on this version…work great for me…thanks anyway…:-)

      [Reply]

    7. sayasatria says:

      Hi, the tutorial really working.
      Just want to know, I use WP-Robot3 and use youtube module with thumbnail on it.

      But the get images plugin do not call the {thumbnail} from youtube module.
      can you give me an advice Mas Cahyo

      [Reply]

      cahyo Reply:

      WP robot 3,.. suck!
      but,.. yesterday,.. i have succeed to trick it.
      add customfield (example : urlimg), and fill the value with {video} as the value,..

      the result is ,…
      there will be custom fields with key : urlimg, and value is youtube special key (example: dOxaq_xAg2g)

      then,.. use this script to show the youtube thumbnail :

      <img src="http://i2.ytimg.com/vi/ID, "urlimage", $single = true); ?>/hqdefault.jpg" />

      the result will be
      <img src="http://i2.ytimg.com/vi/dOxaq_xAg2g/hqdefault.jpg" />

      [Reply]

      sayasatria Reply:

      on home page the img src=”http://i2.ytimg.com/vi/ID cannot call the ID.
      should i insert {video} or just video?
      i have tried your script and this is the result:
      http://o.imm.io/I4t.png
      should i combine your script with get the image plugin or replace get the image plugin code with the script.
      above is the result when i replace get the image plugin by the script.
      am i do something wrong?
      btw, this is almost succeed.

      thanks for the prompt reply mas cahyo :)

      [Reply]

    8. sayasatria says:

      additional info the youtube img are host at i.ytimg.com
      I think I can be same with amazon image, host out of our host, can still can called on the homepage.
      In my case, It’s not work.

      [Reply]

    9. MissV says:

      I updated now to version 4.0, so the code looks the same.
      I use your example home.php, but the thumbnails don’t show up for every article but every article has an image

      Appreciate your help

      [Reply]

      cahyo Reply:

      maybe you can email me your login detail.
      maybe i can help

      [Reply]

      cahyo Reply:

      I have see your site,..
      and found the problems.

      Your big problem is,.. you’re using Get_The_image plugin ver 4.
      please use the plugin that download from this site.
      this plugin has a lower version.

      btw,..
      problem fixed!.
      u can check your site now.

      [Reply]

      MissV Reply:

      thanks!

      the new thumbnails are distorted

      how can I fix that?

      [Reply]

    10. MissV says:

      I want to show also thumbnails at category view. How can I do that?
      Thanks for your help!

      [Reply]

      sayasatria Reply:

      I do it on my site too.

      I’m not using special script.

      Just change the_excerpt() on archive.php to the_content() function.
      So you can get wprobot content show thumbnail, video, and all.

      Change:

      to:

      I think Mas Cahyo will agree with me :)

      [Reply]

      MissV Reply:

      thanks, but my archive.php is encrypted, so I can’t change anything there

      [Reply]

    11. MissV says:

      I still can’t get it done :(

      It’s the only thing, I have to fix before start publishing
      Really appreciate any help!

      [Reply]

      cahyo Reply:

      send me the link bro
      you can send me via email

      [Reply]

      cahyo Reply:

      Hi,..
      the only way is modify the archive page
      archive.php

      if your file is encrypted,.. so,.. i cannot help
      but if you can modify this,..

      try to find “the_excerpt”

      put this script above it to show the thumbnail
      < ?php get_the_image('width=70&height=70'); ?>

      [Reply]

      MissV Reply:

      can you email me the NOT-encrypted archive.php?

      [Reply]

    12. MissV says:

      looks like you don’t wanna help :(

      [Reply]

      cahyo Reply:

      i want to help,…
      but i cannot send you the file.

      why u got an encrypted files anyway,…

      [Reply]

    13. MissV says:

      I don’t know ?!

      what can I do?

      [Reply]

    14. simogold says:

      i have a gazette theme that i trying to use with WP-Robot plugin.which file should we look at to make the above changes since i didn’t find the home.php in the gazette theme directory ?
      thank you

      [Reply]

    15. We are using the same theme =) check it out..
      Mine has different colors though.

      [Reply]

    16. rivermaya says:

      Hi,
      do you know where to change the thumbnail-get image code in newest Lifestyle theme ? because now it become a Child theme from Genesis
      thanks

      [Reply]

      cahyo Reply:

      i am so sory to tell u this,..
      i cannot do script editting for theme that using genesis frame works. If only we know what is the CUSTOM FIELD name that used by genesis,. maybe we still can trick it, but until now, i still cannot beat this genesis.

      [Reply]

    17. rifda says:

      Dear Mr. Cahyo it’s nice article. I want to use Revolution life style theme in my blog. Could you send me link to download the revolution life style?

      Thanks.

      [Reply]

      cahyo Reply:

      so sorry rifda,
      i cannot give the link.
      this is a premium theme, means that you must buy it.
      but you can search it on google anyway,..
      sometimes,.. you will get luck to find the download links

      [Reply]

    18. Khoirul Anam says:

      Hi, i have try this article but it doesn’t work. The thumbnail image not shown.

      [Reply]

      cahyo Reply:

      make sure that you are using the get the image plugins ver 0.33
      the newest version need a different code.

      [Reply]

      Khoirul Anam Reply:

      Ok I have get the theme and install get the image plugin in my localhost. I try to modify home.php file, but it doesn’t work.

      Where “” should be place? I follow from your posting but, it doesn’t work.

      The following are the code of home.php

      have_posts()) : $recent->the_post();?>
      ID, “thumbnail”, true) ): ?>
      <a href="” rel=”bookmark”><img style="float:left;margin:0px 10px 0px 0px;" src="ID, “thumbnail”, true); ?>” alt=”" />

      <a href="” rel=”bookmark”><img style="float:left;margin:0px 10px 0px 0px;" src="/images/thumbnail.png” alt=”" />

      <a href="” rel=”bookmark”>

      Read More Posts From This Category

      [Reply]

      cahyo Reply:

      your code that put in this site got scrapped.
      can you email me the home.php file,..
      or at least,. make a screenshot (jpg file), and show it to me
      maybe i could help

      cahyo Reply:

      change the script at ELSE area
      so, if the “thumbnail” custom fields are not available, the the get the image plugins will works

    19. Khoirul Anam says:

      May I know your email address? I will send the home.php file. Thanks for your kind

      [Reply]

    20. waqar says:

      ok this is great! I am planning to turn my existing blog in to woo themes and right now working on test instance. I was facing images problem and your blog helped me.

      thank you once again for your help!

      [Reply]

    21. David Gore says:

      Thanks for the explanation. This post is really helpful. :)

      [Reply]

    22. Scott says:

      I’ve just installed the Get The Image plugin on Revolution. It didn’t work at first. But I got my answers in the various comments to the original post. Thanks all.

      [Reply]

    23. Charles says:

      Good little tutorial. Exactly what I needed. Even a year after you posted it, still relevant and very helpful.

      [Reply]

    24. I thought getting the thumbnails to show automatically would be too complicated for me to do on my own. But your article was a great help and now I’ve got it working.

      [Reply]

    25. Praths says:

      hey,
      I am trying to change the amazon id in the theme, could you please tell me which option I should go to?

      Thank you.

      [Reply]

      cahyo Reply:

      Could you describe more details?,
      with example maybe…

      [Reply]

    Leave a Reply


    3 + = 11

    Last articles