Posted By

crs on 12/19/09


post wordpress thumbnail

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Wordpress 2.9 Post Thumbnail

 / Published in: PHP

Is also generates the .wp-post-image class for us to style

  1. <?php add_theme_support('post-thumbnails'); ?> //add this to functions.php
  3. <?php the_post_thumbnail('thumbnail'); ?> //use this to grab the thumb version of the image
  4. <?php the_post_thumbnail('medium'); ?> //use this to grab the medium version of the image
  5. <?php the_post_thumbnail('large'); ?> //use this to grab the large version of the image

Report this snippet  

You need to login to post a comment.