You are here: WordPress Video TutorialWordpress TutorialWordPress 3.0 “Set Featured Image”

WordPress 3.0 “Set Featured Image”

by Kimi on June 21, 2010

WordPress 3.0 video tutorial how to set “featured image” or add thumbnail to your post using default theme twentyten.

First when i click “set featured image” button, and refresh my blog, the thumbnail or image does not display and missing. This is because we have not called the function to display this image as your thumbnail yet.

So today, after i posted  how to install wordpress 3 a few days ago, i will share it with you how to display missing featured image. I was so excited to make the video! :) you can probably notice from my voice.

To display the thumbnail which is missing here are the steps:
1. In your admin dashboard, click one of your post to edit it. Scroll down until you find “set featured image”. This will bring media upload dialog box.

IF you use other theme, and you don’t have featured image menu as shown in above image, add this following code to your functions.php (WARNING: backup your functions.php incase you will get parse error!).
add_theme_support( 'post-thumbnails' );

If you have that already, go straight in step 2.

2. Browse the file from your pc, and click upload.
3. Once it is uploaded, scroll down, hit “set as featured image” button, and click “save all changes” then close the dialog box.
4. Next step, go to Appearance/editor/loop.php.
Open this loop.php file, copy all content and paste it in notepad++ or other html editor and find this line of code:
<?php the_content( __( 'Continue reading <span>&rarr;</span>', 'twentyten' ) ); ?>
Before that code, copy and paste this code:
<?php the_post_thumbnail();?>

The image after you paste the code above:


copy and paste it back to loop.php file. and do not forget to click “update file”
5. Now stylizing the thumbnail of wordpress 3.0 twentyten default theme by adding this code in the very bottom of style.css:
.attachment-post-thumbnail{width:200px; height:200px; padding:10px 20px 10px 0; float:left;}
Of course you can apply any styles to this css as you want.
6. Click “update file” and refresh your blog, the thumbnail or image should show up if you did all correctly.

Or watch this step by step video.

blog seo

Subscribe new tips via Email:

Was the post helpful? Share it to help others with:

{ 106 comments… read them below or add one }

Lia June 24, 2010 at 5:15 pm

Great video! It was very informative and moved at a good pace, helped me a lot! Thank you!

Reply

Dina June 24, 2010 at 8:44 pm

@Lia, You are very welcome! I am happy that it could help :)

Reply

khaled hakim July 6, 2010 at 5:23 pm

thanks for the tip… worked like a charm… the only thing im hating about wordpress 3.0 so far is the loop.php file… i know that soon i’ll get used to it… but so far that’s the only thing im disliking about thelonious.

cheers.

Reply

Dina July 6, 2010 at 6:13 pm

@khaled hakim, Thank you for commenting!! I actually wait until someone comments to know it works or not.

Today i am so happy that you confirmed it works :)

Yes, the loop.php is way more complicated than the old kubrick, especially for beginners like me. But it is a wonderful theme, and love the drag and drop menu features.

Reply

khaled hakim July 6, 2010 at 5:33 pm

i thought I would share this also useful piece of info for the thumbnail images to appear next to each post.

to make the thumbnail image a link, simple add this code instead of the one provided by dina and place it in the correct place (as explained by dina) in the loop.php file:

<a href="”>

This will make the image next to the post a link in itself. :) cheers.

Reply

Dina July 6, 2010 at 6:14 pm

@khaled hakim, Thank you for this input, never thought about it.

Thanks :)

Reply

khaled hakim July 6, 2010 at 6:26 pm

the comment i added with the link to make the thumbnail become a link did not appear properly in your comment section.

you might wanna go in and edit that so that it appears!

cheers

Reply

Dina July 7, 2010 at 7:32 am

@khaled hakim, Did you mean this code?

a href="<?php the_permalink(); ?"><?php the_post_thumbnail(); ?>

add “<” before a href.
I could not see the code either, but i tried myself, it didn’t show let’s see this time lol. (I have tried many times but it shows always a linkl)

Thanks!

Reply

marvin July 8, 2010 at 9:16 pm

Thanks ! It works!

Reply

Dina July 9, 2010 at 7:51 am

@marvin, so glad it works for you.

Thanks for commenting :)

Reply

rob July 10, 2010 at 7:50 am

Hi, where do you get the “featured image” plugin? Can’t find it anywhere,

Thanks

Reply

Dina July 10, 2010 at 8:44 am

@rob, hey there,
This is not using a plugin, it is by default is set if you are using wordpress 3.0.

So if you use wordpress 3, it should be appeared in your dashboard.

I hope this helps.

Reply

rob July 10, 2010 at 9:08 am

Hi – just watched your video – very useful.

But – I am using wp3.0 and found that by adding:

add_theme_support( ‘post-thumbnails’ );

To functions php it appears – but I have no loop file with my theme so does that mean i need to create one?

Thanks so much for your help.

rob.

Reply

Dina July 10, 2010 at 10:27 am

@rob, Yes, after you add this code in your functions.php:
add_theme_support ('post-thumbnails');
if (function_exists ('add_theme_support'))
add_theme_support('post-thumbnails');

Then you can follow the tutorial, it should be added in index.php if you have another theme.

Also if you want the thumbnail to appear in single post page, you can also added in single.php file.

Let me know if it helps.

Reply

rob July 10, 2010 at 11:59 am

Ok so are you saying instead of adding the code into the twentyten loopphp, cos i don’t have a loop file with my theme i should place it in my themes index file?

This I tried but parsed errors – not sure where to place it.

Thanks.

Reply

Dina July 10, 2010 at 2:08 pm

@rob, Do you have this code in your index.php, or similar code?
<?php the_time('F jS, Y') ?>
If yes, paste the code after code above.

If not, it would be easier to help if i see your site or you tell what theme you are using.

Reply

khaled hakim July 10, 2010 at 2:07 pm

You should place it in the template which you wish to display the thumbnail… and you should place it in the php (code) loop that generates your posts. You simply need to find the piece of code in your index.php file (assuming thats the page you wish to add the thumbnails to) that does the “get post” function and lists them. Simply add the code provided above to add the thumbnail to the code loop. If you need more help on where to place it still, email me your index.php file (copy paste it in an email) and ill send it back to you with the code placed iin the right place. khaledhakim[at]gmail.com

Reply

Dina July 10, 2010 at 2:11 pm

@khaled hakim, Thanks for the help :)

Reply

rob July 13, 2010 at 2:44 pm

Hi Dina,

Thanks for the help – sorry for late reply – pc crashed saturday and been rebuilding since.

I’ve attached my site. I’ll go through it again now with a fresh head and see how i get on,

Many thanks,

rob.

Reply

rob July 13, 2010 at 3:03 pm

Ok it’s working but not exactly. It’s placing the images on the frontpage but not where the theme I’m using would like – you can see by clicking my name – link behind.

I’m wondering, I’m quite happy to pay you using paypal if you wouldn’t taking a look.

Thanks again,

rob.

Reply

Dina July 13, 2010 at 5:58 pm

@rob, I have made a quick tutorial using your theme here:
http://www.blog.web6.org/display-image-post-in-squared-2-theme/

The video is waiting to be compressed, but if it works out then you don’t need to see the video ;)

Your theme is using custom field to add thumbnail, so you don’t need to add any codes above.

I may put a donation button of this blog, if we talk about payment, but someday.

Let me know if that post helps.

Reply

Jasper Kennis August 2, 2010 at 11:02 am

You just saved me so much time looking for references for this, thanks!

Reply

Dina August 2, 2010 at 11:57 am

@Jasper Kennis, I am glad it was useful.

Thanks for your nice comment!

Reply

Jon August 18, 2010 at 8:13 pm

Great video, thanks Dina

Reply

Terrence August 19, 2010 at 8:51 am

I was wondering how could i get this done in the frontpage?

Reply

Dina August 20, 2010 at 12:14 pm

@Terrence, hello there,

It really depends on your theme, if you want to have it in the front page, for twenty ten, it is in loop.php file, but most of themes use index.php for the front page.

Reply

deepesh August 19, 2010 at 10:31 am

hi ,
i have problem i can’t get the feature image in wordpress 3.0 i want the feature image out of loop .. i had like this code…
echo ”;
if(has_post_thumbnail($PostId2)) {
$imgdps = get_post_thumbnail_id($PostId2);
echo $thumbnail;
echo”; //the_post_thumbnail(‘d-featured’,$PostId2);//the_post_thumbnail(‘d-featured’ );
} else {
echo ”;
}

Reply

Dina August 20, 2010 at 12:13 pm

@deepesh, Hi there,

I guess it depends on the theme you are using. The tutorial is using twenty ten.

I can’t help with your code, you might want to ask in wordpress.org support forum, good luck.

Reply

Terrence August 20, 2010 at 12:30 pm

My theme is based on the Twenty Ten theme. Basically i want to have featured image on the side like psdtuts.com

Reply

Dina August 20, 2010 at 4:31 pm

@Terrence,

The tutorial’s result above will have twenty ten having thumbnails with the image floating to the left (as image)
featured image floating to the left

And if you want to have it like psd tut, the method is still the same but the css will be different. The result will be as in image. I suggest you to hire a coder to tweak your theme, but be careful with scammers.
like in psdtut.com

Reply

Luis Rivera August 25, 2010 at 10:11 am

Hi,

I think Dina can help me =(
It’s my first WP-Theme mood.
Im having the same problem that Terrence but to make it easyer i just switched to the original Twenty-Ten Theme, so you can help me….

1st. I placed the code

2nd. I notice you say before that we should place first this into the loop:
add_theme_support (‘post-thumbnails’);
if (function_exists (‘add_theme_support’))
add_theme_support(‘post-thumbnails’);

but i didnt because i dont know where in the loop i should place it and i saw that they already have part of this code…. well, just add_theme_support (‘post-thumbnails’);

im a bit lost… please help me

Reply

Luis Rivera August 25, 2010 at 11:10 am

ok ok…. forget about this =)
i found the error…. and probably other people will get the same… theres to lines with almost the same code and when someone try to find the pice of code that should be below is probably getting the second one….

i fixed putting it on both places.

another point is that i dont know if its because im using WP 3.1 but with the fix you just explained, the “Post Image” or “Featured Image”(as is called in WP 3.+) just make the image appear beside the post’s in the blog, but not in single pages or any other page, so everybody should remember to call the function in every template page they want it to appear.

In my case, im creating a site using WP as a CMS, and almost every single page has a Featured Image beside the content, this feature will be great for my client and me because now he just need to select the image, from this ui label, and the code auto adjust the size and keep the site look as clean as posible.

if any one is looking how to make the thumbnail’s have an specific size follow this link, its helps a lot http://support.bavotasan.com/topic/how-to-set-the-post-thumbnail

Dina, my rewards.

Reply

Dina August 25, 2010 at 12:16 pm

@Luis Rivera, Hey there,

If you use twentyten theme just follow the tutorial above (also video) it will work.

But if you have other themes, it really depends on the themes, you can also add codes add_theme_support line above in “functions.php” not in loop.php. (in twentyten’s functions.php, this code is already in by default).

The tutorial above will show the thumbnail only in “home” page, if you want to add it in post page, then pasting the same code in single.php will work.

Remember always to be consistence with the size, because cropping it online, will make your blog slow.

I have checked the link, it was made for specific theme, didn’t try the plugin, but i personally would not use plugins if it can be solved manually.

Thanks for the useful link Luis, and good luck.

Reply

Luis River August 25, 2010 at 11:00 pm

@Dina, hmm…

so, set_post_thumbnail_size( 150, 150 );

is not a good way to crop the images on my blog?

Cuz im looking the easyer way to allow my client be able to do most of the changes minimizing the damage on the look…. and as you know for sure, they never understand if ask them to upload the images with an specific width and height.

suggest me the most recommendable way for this please.

Reply

Dina August 26, 2010 at 6:57 am

@Luis River, hey

As i am aware of, it is not good to crop the images which is larger from the original.

Page load speed is the reason, but i suggest you asking wordpress.org support team to get a best recommedation:)

Deepak G August 26, 2010 at 5:49 pm

@Dina,
As per tutorial, I did everything..but featured post is not appearing on homepage of my blog..(www.DigitGuide.com)
Can you please tell me..what may be the problem..?

Reply

Deepak G August 26, 2010 at 6:13 pm

@Dina,
Thanks..
now I resolved it..
it was my homepage_excerpts plugin which was causing problem..
just changed plugin setting to “Number of posts to be displayed fully” and it Worked..
Thanks again..

Reply

Dina August 26, 2010 at 8:34 pm

@Deepak G, Awesome” Thumbs up that you found out the problem was.

I have checked it, i see the images:D

Reply

Akash Padhiyar September 9, 2010 at 9:44 am

i am using Free Image Hosting Sevrer then How to Set featured image .?

Reply

Dina September 9, 2010 at 5:16 pm

Unfortunately i don’t know.

But i guess it is not possible, unless those images have dynamic links that are organized.

Reply

Akash Padhiyar September 9, 2010 at 6:59 pm

Its ok .if u find solution then pls mail me..

Reply

Dina September 10, 2010 at 3:11 am

I certainly will. Thanks for coming by.

Reply

wade September 12, 2010 at 11:10 pm

Is there a way to set a default image for a specific category and have a different default image for each category?

Reply

Dina September 13, 2010 at 5:16 pm

Hi wade,

I am not sure about it, but i guess it is possible if we can tweak the theme, my php knowlegde is not that far :( sorry.

Thanks for leaving a comment.

Reply

Gouri September 17, 2010 at 3:16 pm

Hey Dina, Thanks for this helpful post..

Reply

Dina September 17, 2010 at 7:35 pm

You’re most welcome, glad you found it useful :D

Reply

Matheus Felipe October 17, 2010 at 3:41 am

Show de bola a video aula valeu, brigado tava procurando a muito tempo esse tutorial para vazer minis posts na homer do meu site…..

Reply

Dina October 17, 2010 at 8:01 am

Gracias! =D

Reply

Parijs October 28, 2010 at 10:16 am

Tnx for this post i was looking for how to use featured image tryed wordpress.org but this explains it way beter! :)

Reply

Kimi October 28, 2010 at 1:51 pm

You’re most welcome! Glad it was useful.

Thanks for your nice words Parijs.

Reply

Mike November 5, 2010 at 3:26 am

Dina,
My featured images are set up and working, however I have not been able to successfully make them clickable to the entire post…

this is where my code for this function is, could you show me where to insert the href?

?php

unset($cimage);

$cimage = catch_that_image (get_the_id(), ”, ”, ” .get_bloginfo(‘template_url’) .’/scripts/timthumb.php?zc=1&w=130&h=50&src=’);

if ( current_theme_supports( ‘post-thumbnails’ ) && has_post_thumbnail() ) {

the_post_thumbnail(array(234,9999, true)); } ?>

Reply

Kimi November 5, 2010 at 8:49 am

Hey Mike,

I have made a tutorial here: http://www.blog.web6.org/wordpress-clickable-thumbnail-link/

I didn’t use functions.php file for it.

I hope this helps.

Reply

Ben December 4, 2010 at 4:57 pm

This is really helpful. many thanks Kimi

Reply

Kimi December 6, 2010 at 5:51 am

Ben,

You’re most welcome! Thanks for leaving a message.

Reply

Erik Fors-Andrée December 8, 2010 at 10:48 pm

Think I posted this on another post first… sorry.
Thanks for a great tutorial. I’ve managed to get the featured images to display, but I can’t get the styling right. I’ve used the exact same css as in your example, but still no success, why?

Reply

Kimi December 8, 2010 at 10:55 pm

Hi there, Erik,

Do not be sorry, i had a problem with my theme’s modification code, since i switched to a new theme today :-)

So it is not your fault. However i checked your website, and checked the css file, you did put the code incorrect :-(

Here is the screenshot (it should work if it is pasted in the bottom of style.css)
floatfeaturedimagecss

In the image and in the tutorial you should paste the piece of the css code right in the VERY bottom of style.css

I hope this helps.

Reply

Erik Fors-Andrée December 8, 2010 at 11:06 pm

Thank you VERY much! You rock!

Reply

Kimi December 8, 2010 at 11:12 pm

Just checked it, it works!

Most welcome, glad it helped.

Best luck to your new blog!

Erik Fors-Andrée December 8, 2010 at 11:15 pm

btw, can the featured images be displayed on category pages too? I’ve tried but didn’t succeed :(

Reply

Kimi December 9, 2010 at 7:14 am

I guess it can. But I have not tried it yet.

Thanks for the idea, may will create a post on that too. You can subscribe to the feed if you want :-)

Reply

Huong Tinh Vu February 8, 2011 at 1:47 am

Look for code:

and add right below

Reply

aswin December 23, 2010 at 9:45 am

Hi
I have some Q here,
When I set a image as featured image I am geeting that and thumbnail is also created on the homepage .
I want something like that featured image shouldn’t be in that post content
It should be only in the home page as thumbnail
Is there any way to do that ?

Reply

Kimi December 23, 2010 at 11:16 am

Hello Aswin!

In the tutorial, i use Twenty Ten theme, and display only on “home page” and not in the post content.

If you are using the same theme, follow the video.. But if you use another theme, then it should have different code, you can ask the theme developer..

I hope this helps..

Regards,

Kimi.

Reply

Patrick February 9, 2011 at 5:06 pm

What if I ONLY want thumbnails on category archive pages?

Reply

Kimi February 11, 2011 at 7:22 am
Konde March 7, 2011 at 12:12 pm

This not working when we have turn on multiuser mode.
Please Help.

Reply

shweta March 11, 2011 at 9:59 am

You can use for getting the thumbnail version of the featured post.

Shweta

Reply

Leo March 18, 2011 at 3:36 pm

Thank you so much for your tip. Your video really helps a lot for newbies like I am.

Reply

Kimi March 18, 2011 at 4:16 pm

I am glad it helped, Leo!

Thanks for leaving a message, Good luck with the new blog :-)

Reply

Erik March 19, 2011 at 8:33 pm

Hi,

Just saw your site by a tip. Hope you can help me, can’t find an answer to my q.

I’m using a free theme (designpile) for wp 3.1. But i can’t figure out how to put featured image on the feautured post. I see the thumbnails but no image in the featured post. The documantion siad:For the image of featured post you need to add a custom field called “featured_img” with the full path to the image as value.”

I dond’t know what the mean exactly here. Can you help me??

Many thanks! (sorry for my bad Englisch:-( )

Reply

Kimi March 20, 2011 at 10:17 am

Hello Erik,

I have bad English as well :-)

I have made a tutorial : http://www.blog.web6.org/display-image-post-in-squared-2-theme/
The tutorial uses squared 2 theme, and it is also using custom field, called “image”

Please watch the tutorial, but instead typing “image” as custom field, replace it with “featured_img“.

I hope it helps

Kimi.

Reply

Lawrence March 20, 2011 at 6:10 am

Hi Kimi,

This video and post were extremely useful and enlightening!

On a different note, I’m wondering how you get get a website preview thumbnail when sharing/posting your websites’ link on facebook? When doing it with most any website there’s a little image/thumbnail and little desrciption on the side that shows up but nothing happens for my website when I share it on Facebook.

Any ideas?

Thank you in advance for your help!

Best,

Lawrence

Reply

Kimi March 20, 2011 at 10:19 am

Hi Lawrence,

Yes, you can actually show thumbnails and its decsribtion in Facebook, but you have to add some codes, which you can Google. I ever read somewhere, but never really tried it, because I use twitterfeed and it displays automatically.

Kimi.

Reply

Erik March 20, 2011 at 1:13 pm

Hi Kimi,

Thanx for your quick response!

I found out what was the problem. In wp 3.1 no “custom field”is showing bu default. So i had to put it on in “screen options”. Because of my wp-lang. (dutch) i didn’t reconize “custum field” in screen options. But now i know it had to be there and it worked now! Thanx for your help, i will come back to this helpfull site!

Greetz,

Erik

Reply

Kimi March 21, 2011 at 10:52 am

Hi Erik,

Aaaaaaaah, ya, the screen option is hidden.

Glad it worked out at the end!

Thanks,

Kimi.

Reply

Lawrence de Laubadere March 20, 2011 at 8:57 pm

Thanks Kimi! Have searched and seem to have found an answer, now the key is get it to work!;-)
Best,
Lawrence

Reply

Kimi March 21, 2011 at 10:52 am

Awesome Lawrence, glad you found the answer!

Kimi.

Reply

Matth March 31, 2011 at 10:03 pm

So cool. It worked!
I’m surprised “Featured image” isn’t available on the backend by default. Glad to see how easy it was to add. Thanks!

Reply

Keith Davis April 3, 2011 at 2:04 pm

Hi Kimi
You make it look very easy.
Took you a few minutes – would take me a couple of hours. LOL

Just had to use “set featured image” on my updated theme.
Just as well my theme supports it.

BTW – do you do any videos on Genesis theme framework?
I’ve just bought the developer package to set up a few company websites.

Thanks for showing us how.

Reply

Kimi April 4, 2011 at 6:07 pm

Hi Keith!

No, I don’t have premium theme videos, I don’t want to make it, because they have own forums :-)

I hope you will like your new theme!

Thanks

Kimi.

Reply

Roger May 22, 2011 at 3:53 pm

I’m using Twenty Ten 1.2. “excerpts” summary only.

I have added ” is_home() ” in this line so all my post show summery.

can I still call an image in excerpts mode? your method does work if i dont have summary only for home page.

Reply

Kimi May 27, 2011 at 6:37 am

Roger,

I have never tried that method.

Reply

Brad Leyten May 30, 2011 at 6:37 am

Thank you!!! Thank you!!! Thank you!!! I could not for the life of me figure out why some themes give the link to set featured image and some didn’t with my recent install of Wordpress Multisite. Keep up the good work!!!

Reply

Kimi May 30, 2011 at 7:32 pm

Most welcome, Brad!

Come over soon :)

Reply

Farhana May 30, 2011 at 9:44 pm

Hi I used your tutorial and for some reason I can’t style the image at all… It just stays in it’s original size.. Is there a way for me to fix that?

Reply

dan man June 30, 2011 at 8:42 am

hey kimi! great article but for some reason when i have multiuser mode on, its not working. would u know how to resolve that issue?

Reply

Kimi June 30, 2011 at 2:57 pm

Hi Dan,

Welcome to a newbie blog :-)

I have no experience on multiuser wp unfortunately..

I hope you will find solution soon.

Reply

Kaela June 30, 2011 at 7:11 pm

Thank so much! The theme I had seemed to use a featured image, but there wasn’t any way to set WHICH one was picked if I had more than one image on a post. This helped save me the big headache of fiddling and guessing, thanks a bunch!

Reply

Martin July 3, 2011 at 7:27 pm

Hi Kimi!
Just wanted to let you know i tested your code and stuff on wordpress 3.1.4 and it works with one slight alteration.

in the style.css, when i named the class “.attachment-post-thumbnail”, the image didn’t float. So i inspected the image and found out that my browser wanted “img.attachment-post-thumbnail” as the class name. You might want to add something up in the post about that :P

great idea! thanks for getting it out there,

-Martin

Reply

Kimi July 4, 2011 at 7:06 am

Hi Martin!

Thanks for the catch-up.

I have checked withj wp 3.2 beta, and the css code above still works. Only now the loop.php is changed.

I might create another new post about it.

Thanks to point it out, I truly appreaciate it!

Kind regards,

Kimi.

Reply

bagyojose July 7, 2011 at 7:51 am

good idea, thanks.

Reply

Jen July 16, 2011 at 5:55 am

We have a image problem that occurs only on main page.. When you go to facebook and you and you click on link and you put in goldleafspiceandteas.com/ it doesn’t show the title, description and shows up this EVIL jewerly image. When want the logo goldleafspiceandteas image to appear.. It works correctly on the posts and pages.. But I take the reason why it’s not working is because the index is not inside of wordpress itself so therefore, that’s probably why it’s not working. When I double click the image and save it on my desktop that image comes up as php file called safe_image.php

I wounder this code will work??

Reply

Kimi July 16, 2011 at 6:44 pm

Hi Jen!

Unfortunately I have no idea how it will work with Facebook, as I have never tried..

Kind regards

Kimi.

Reply

Alan Turner July 23, 2011 at 11:01 pm

Hello Kimi

I’ve hunted the internet for a solution and can’t find it. You however seem to be the closest and therefore my expert!

If you check the website: http://www.alanturnerimages.com

It opens to the blog. I want to click on the image and for the image to open full size.

At the moment when you click on the picture it opens to the post and then you have to click on the image in the post to get it full size.

In essence it creates 2 clicks to open the picture.

I am not an expert so please (if you can help) go slowly.

Can you help?

Rgds
Alan

Reply

Alan Turner July 23, 2011 at 11:21 pm

It’s okay. I solved it and it works.

Rgds
Alan

Reply

Naomi July 26, 2011 at 7:27 am

Hi,
Thanks so much for the tutorial. It was just what I was looking for.
I have managed to get the set featured image activated as per your instructions. But, I am having problem with aligning the image with the post. I have placed the code .attachment-post-thumbnail{width:200px; height:200px; padding:10px 20px 10px 0; float:left;} at the very bottom of style.css but nothing happened. What could be wrong?

By the way, where do you go to check whether the image is called attachment-post-thumbnail? I am using twenty ten theme. for your information.

Thanks so much.
Naomi

Reply

Zach Milne August 1, 2011 at 11:04 pm

Oh my gosh! I could not figure out what I was doing wrong. That little evasive “add as feature image” link! Thanks for your hep. It works perfectly now.

Reply

Alejandro sanchez August 20, 2011 at 1:43 pm

hi! recently i’m having a problem… i believe it started when i installed a plugin for automatic post publishing on fb (already uninstalled).

now everytime i paste the link on facebook an image appears instead of the 1st image of the post.

this only occurs when there’s one image on the post and when the image is located BEFORE the “READ MORE” code, else everything goes ok…

would you be so kindly to help me out? i haven’t found an answer cause really don’t know how to search for that specific problem :S

i’m using the latest version of wordpress (3.2.1)

THANKS!

Reply

Kat August 21, 2011 at 6:49 pm

Don’t know if you still answer these questions here, but I’ll give it a shot.

I am using this feature on my new blog right now, and running into an issue with using the same feature image more then once. Apparently it attaches the photo to the post, so you can’t use the image more then once. However for my basic news updates that don’t have photos within it, I want to alternate between two images. I can’t find ANY info on how to go about doing this other then uploading the same images over and over and over again and thats just not a doable option for me.

Reply

Rafael John August 29, 2011 at 4:11 am

hi I have made it adding featured images in my home post, but when I try to view that post via categories, the post shows but no preview image. can someone help me please?
here’s the site im working on
http://flamedidea.byethost31.com/
you can see that the 2nd post has feature image now, but
when you click my main menu portfolio, that post will show but the thumbnail I set is gone.

Reply

Kimi August 29, 2011 at 5:40 pm

Hi Rafael,

Welcome to my blog,

To display on the category page, I actually posted in this link:

http://www.blog.web6.org/category-featured-image-thumbnails-in-wordpress-category-page/

I hope this helps, regards,

Kimi

Reply

Jackie September 1, 2011 at 1:19 am

THANNNNNNNNNK YOU! You are the BEST!

Reply

Chris September 26, 2011 at 4:17 am

Funny enough, I’ve got the opposite problem from Raphael -

My wordpress theme is like a news website, and uses a “Featured Image” from a blog post on the front page. Does anyone know how to feature an image WITHOUT having to have it show up in the actual post? Love the post, btw, I’ve been taking full advantage of the feature.

Reply

Chris September 26, 2011 at 4:21 am

You know, I sort of figured it out 10 seconds after posting that – when you’re uploading a featured image, you can click “USE AS FEATURED IMAGE” without ever having to click “INSERT INTO POST”. Unfortunately, I don’t think there’s an option to do that when you’re drawing from the galleries created by the plugin I use to manage photos.

Reply

Gowtham January 29, 2012 at 8:11 am

Nice tutorial.Very helpful to use featured thumbnail image in my homepage.Thanks for sharing.

Reply

Alex January 30, 2012 at 10:50 pm

Hello, I finally found the answer that I was looking for.I use ctr theme and I don’t have menu in admin panel.Now I am edited through your greate video.I still have a problem with loop.php file.I don’t have any code “<?php the_content( __( 'Continue reading →’, ‘twentyten’ ) ); ?>”
Here is loop.php on paste bin:
http://pastebin.com/embed_js.php?i=93RgJFcR
Can anyone tray edit the code ?
Thank’s

Reply

Know better? Feedbacks, or Questions? Shoot! :-)

Please use a name instead of blog name or SEO stuff, otherwise it will be deleted right away.

About checkbox → See more my post:how to get rid of spam bots in wordpress post.

Thank you for visiting, you're always welcomed to be here again!

{ 1 trackback }

Previous post:

Next post: