Enable Post Thumbnails in WordPress
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
<!-- Starting from WordPress 2.9, you can use the default built-in Thumbnails feature in your themes. To do this, you must enable the post thumbnails inside your functions.php file. Paste the code below: -->
add_theme_support( 'post-thumbnails' );
<!-- Then simply place the following code inside your loop where you want to display the thumbnail: -->
<?php the_post_thumbnail(); ?>