Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm new to Wordpress and I'm trying to create a new theme for it. I've downloaded the latest version (3.2.1) and installed it successfuly. But when I install my wordpress theme (to start to add the PHP) and try to create a new post, what happens is that the Set Featured Image box disappears and it only shows again when I return to the default theme.

Any suggestions for this? Thank you

share|improve this question

migrated from stackoverflow.com Sep 24 '11 at 3:54

This question came from our site for professional and enthusiast programmers.

    
ok..try refer here hackingethics.com/blog/2010/09/04/… –  ruslyrossi Sep 24 '11 at 4:09

1 Answer 1

up vote 3 down vote accepted

What is happening is that your theme does not have support for featured image. What you need to do is add in the functions.php file of your theme the line :

if (function_exists('add_theme_support')) {                     
    add_theme_support( 'post-thumbnails' ); 
}

and then you will be able to use featured image in your theme

share|improve this answer
    
This is a duplicate post though! –  Rutwick Gangurde Sep 24 '11 at 5:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.