Support » Fixing WordPress » Adding Featured Images in WP 3.2.1

  • So I am working on a site, obviously using a theme. I have read that in order to “activate” featured images I have to add these lines to my functions.php file:

    <?php add_theme_support( 'post-thumbnails' ); ?>

    So I did and added this line to my single.php file

    <?php the_post_thumbnail();?>

    Ok so that’s all fine and dandy, nothing broke. I ended up with this post as a test on a self storage site under construction.

    My question is this, where would I “turn on” featured images in the WordPress core? If I do i t in a theme.. when I change themes it breaks.. is it the wp-includes/functions.php file? Would that do it if I added that line (I know that if I update WP then I lose this change).

    Since you are reading .. what is the default “core” stylesheet for WordPress 3.2?

    Thanks for any feedback..


Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey Webjedi… Thanks for posting this. I added those lines to my php files and the Featured Image option returned to my Post’s edit page… but when I updated the page with the Featured Image, I still don’t see the featured image on the post on the actual live website. Any ideas?

    Basically I’m able to set featured image on the individual posts (which show now show featured image option)… but the featured image is not showing up when I update the page.

    Perhaps adding a height width to the thumbnail will make it show.
    the line sin the functions.php file should read:

    add_theme_support( ‘post-thumbnails’ );
    set_post_thumbnail_size( 200, 200, true );

    The 200, 200 is the height width.
    If they still dont show, biew source and see if anything is getting put there, maybe the path to the image is somehow messed up or the image is there but there is a style on it preventing it from showing or something, so try this first ..

    dont forget to add:
    <?php the_post_thumbnail();?>

    Where you want the image to appear in the theme page (often single.php) but can be anywhere.


    Hmmm… I tried all of the above yet the image is still not showing up on the live website. I am getting the “Featured Image” option on my Post edit pages and I am able to set a Featured Image but when I update the Post, the image is still showing up as missing on the live website.

    I saw another thread where someone mentioned updating the config file but they didn’t say how they did it. I sent them a note asking what they did but still no reply. Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding Featured Images in WP 3.2.1’ is closed to new replies.