how to active featured image

Discussion in 'HTML & Website Design' started by anindya420, Oct 5, 2013.

  1. #1
    how to active featured image in custom template word press
     
    anindya420, Oct 5, 2013 IP
  2. HDaddy

    HDaddy Active Member

    Messages:
    287
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Didn´t Hefaistos advice you in the previous thread? It´s like this:

    in your functions.php file
    
    if ( function_exists( 'add_theme_support' ) ) {
    add_theme_support( 'post-thumbnails' );
    set_post_thumbnail_size( whatever-size, whatever-size, true ); 
    
    PHP:
    And then in your loop:

    
    if ( has_post_thumbnail() ) {
        the_post_thumbnail();
    }
    the_content();
    
    PHP:
    this is all in the wordpress codex.
     
    HDaddy, Oct 5, 2013 IP
  3. sarahk

    sarahk iTamer Staff

    Messages:
    28,816
    Likes Received:
    4,536
    Best Answers:
    123
    Trophy Points:
    665
    #3
    Maybe software engineers don't configure other people's systems?
     
    sarahk, Oct 6, 2013 IP