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
FYI : you must download get the image plugin here
Only registered member can view this content. Please Login or Register first.



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:
April 12th, 2010 at 8:56 pm
u’re welcome bro
[Reply]
zek Reply:
April 12th, 2010 at 9:00 pm
can i update get the image pluin? or let it be old version?
[Reply]
cahyo Reply:
April 12th, 2010 at 9:05 pm
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:
April 12th, 2010 at 9:08 pm
bro,
i’m using as attached on your blog post. but no luck to have pic.
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:
April 12th, 2010 at 8:56 pm
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]
zek Reply:
April 12th, 2010 at 8:57 pm
But http://multi.tambun.info/where-to-have-the-baby-showers-baby-shower-invitations-cards.html not show the pic?
[Reply]
dowe Reply:
April 13th, 2010 at 9:48 am
hi Zek..
how to create bground imge for you adsense (below carousel widget) at http://multi.tambun.info/ ???
thanks…
[Reply]
Bro,
is it i must used amazon.php file as use at church theme?
[Reply]
Any suggestion bro? u want to login into my wp admin?
[Reply]
zek Reply:
April 12th, 2010 at 9:09 pm
is it i need to change “largeimage” into “thumbnail” in home.php? is that for amazon only right?
[Reply]
cahyo Reply:
April 12th, 2010 at 9:11 pm
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:
April 12th, 2010 at 9:10 pm
send it to me bro
[Reply]
zek Reply:
April 12th, 2010 at 9:13 pm
sent details. Check ur email bro
[Reply]
cahyo Reply:
April 12th, 2010 at 9:21 pm
problems solved!
you can check by create new post
@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:
April 15th, 2010 at 8:13 am
1. Spam comments? right!. I keep their comment, but i remove their url
{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:
April 15th, 2010 at 6:15 pm
Thanks for respond…
[Reply]
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:
April 20th, 2010 at 1:53 pm
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:
April 21st, 2010 at 1:19 pm
ok, i understand that…i’ll stick on this version…work great for me…thanks anyway…:-)
[Reply]
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:
June 4th, 2010 at 7:49 pm
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:
June 16th, 2010 at 8:50 pm
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]
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]
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:
June 9th, 2010 at 4:55 pm
maybe you can email me your login detail.
maybe i can help
[Reply]
cahyo Reply:
June 9th, 2010 at 11:57 pm
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:
June 11th, 2010 at 2:09 pm
thanks!
the new thumbnails are distorted
how can I fix that?
[Reply]
I want to show also thumbnails at category view. How can I do that?
Thanks for your help!
[Reply]
sayasatria Reply:
June 17th, 2010 at 3:34 am
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:
June 17th, 2010 at 3:10 pm
thanks, but my archive.php is encrypted, so I can’t change anything there
[Reply]
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:
June 24th, 2010 at 9:08 am
send me the link bro
you can send me via email
[Reply]
cahyo Reply:
June 24th, 2010 at 10:03 pm
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:
June 25th, 2010 at 3:41 am
can you email me the NOT-encrypted archive.php?
[Reply]
looks like you don’t wanna help
[Reply]
cahyo Reply:
July 9th, 2010 at 3:27 pm
i want to help,…
but i cannot send you the file.
why u got an encrypted files anyway,…
[Reply]
I don’t know ?!
what can I do?
[Reply]
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]
We are using the same theme =) check it out..
Mine has different colors though.
[Reply]
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:
August 15th, 2010 at 5:17 pm
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]
Hi
I’ve spent the whole day online trying to find this exact topic! But you know after reading some comments you suggested not to update Get the Image. You know that was my problem! Every time the plugin updated something would go wrong with my site. Ok, I’m going to try your modifications.
Thanks
[Reply]
cahyo Reply:
December 20th, 2010 at 7:58 pm
there are lots of change in this “get the image plugins”,
so, you must read carefully for the instructions
[Reply]
I have both Lifestyle themes. Revolution and Genesis. I regret getting Genesis because I’m finding it hard to use Get the Image. Maybe once you know you could post it. I’m trying to make the Genesis Lifestyle theme into an autoblog using WP-robot. Very difficult for me right now.
[Reply]
cahyo Reply:
December 20th, 2010 at 7:59 pm
genesis still hard to beat by me.
in this mean time,.. i still cannot help.
maybe wprobot can solve this by cativate the feature for “save thumbnail in our server”
just maybe,….
[Reply]
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:
December 20th, 2010 at 8:00 pm
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]
Hi, i have try this article but it doesn’t work. The thumbnail image not shown.
[Reply]
cahyo Reply:
December 20th, 2010 at 8:00 pm
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:
December 22nd, 2010 at 10:48 am
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:
December 22nd, 2010 at 11:03 am
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:
December 26th, 2010 at 3:13 am
change the script at ELSE area
so, if the “thumbnail” custom fields are not available, the the get the image plugins will works
May I know your email address? I will send the home.php file. Thanks for your kind
[Reply]
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]
Thanks for the explanation. This post is really helpful.
[Reply]
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]
Good little tutorial. Exactly what I needed. Even a year after you posted it, still relevant and very helpful.
[Reply]
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]
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:
October 21st, 2011 at 5:16 pm
Could you describe more details?,
with example maybe…
[Reply]