How do you get thumbnails to show up in the admin edit post?

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!

Related posts

Leave a Reply

2 comments

  1. 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.

    Better:

    add_theme_support( 'post-thumbnails', array( 'post', 'page' ) );
    
  2. 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?