WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried to add thumbnail support to my theme

add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size(133, 133, true);
add_theme_support( 'post-thumbnails', array( 'post' ) );
add_theme_support( 'post-thumbnails', array( 'page' ) );

So this isnt working, or at least I'm not sure how this should work, help!

share|improve this question
up vote 1 down vote accepted

This looks flawed:

add_theme_support( 'post-thumbnails', array( 'post' ) );
add_theme_support( 'post-thumbnails', array( 'page' ) );

Do you see the post thumbnail box on pages? If so, you have just overwritten the support on posts with the second declaration.


add_theme_support( 'post-thumbnails', array( 'post', 'page' ) );
share|improve this answer
Doesn't the first generic add theme support (in the OP code) add it to post and pages, negating the need to apply it to posts and pages separately? That's what I was mentioning in my reply, albeit not so clearly.... been a long day! But yeah, the page declaration could be over-writing the 2 previous declarations.... only the first 2 lines would be needed – Rev. Voodoo May 20 '11 at 17:58

your code is proper, at least the first 2 lines.... don't think the last 2 lines are needed

The feature is actually called featured image in the edit post screen, even though the code calls it thumbnails. Bit of a terminology change over versions

If the 'featured image' option is not visible toward the bottom right, then up toward the top right you should see 'screen options', click that and see if the featured image is checked to be displayed

And just to be sure, you added that code to functions.php correct?

share|improve this answer
Mine usually shows at the bottom right of the screen – xLRDxREVENGEx May 20 '11 at 17:48
I'll clarify my answer...that does sound wrong.... I had meant screen options was top right – Rev. Voodoo May 20 '11 at 17:50
(wipes forhead) i thought my wp install was flawed – xLRDxREVENGEx May 20 '11 at 17:52

Your Answer


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.