• Okay so essentially I want to use a thumbnail pic for the front page and then for the actual post a bigger image of that image. Ive seen it done on alot of sites but I cant figure out how to do it. Please help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,

    I’m currently going through the links above and try to figure it out for twenty ten but I’m not sure if I understand it correctly. I’m also looking into this website for more detailed reference, https://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/

    Steps

    1) Go to function.php and insert “add_theme_support( ‘post-thumbnails’, array( ‘post’ ) );” right at the bottom of the file. This code is only showing thumbnail in post only.

    2) To adjust the size and crop, insert “set_post_thumbnail_size( 50, 50, true );” right below my point 1 in function.php

    3) Go to loop.php and insert at the bottom of the page:

    <?php
    if ( has_post_thumbnail() ) {
    // the current post has a thumbnail
    } else {
    // the current post lacks a thumbnail
    }
    ?>

    4) Followed by inserted “<?php the_post_thumbnail(); ?>” right after my point 3 in loop.php.

    Please guide me if i’m totally wrong of which i think so. Many thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to use a thumbnail pic on front page’ is closed to new replies.