/ Published in: PHP

Is also generates the .wp-post-image class for us to style
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php add_theme_support('post-thumbnails'); ?> //add this to functions.php <?php the_post_thumbnail('thumbnail'); ?> //use this to grab the thumb version of the image <?php the_post_thumbnail('medium'); ?> //use this to grab the medium version of the image <?php the_post_thumbnail('large'); ?> //use this to grab the large version of the image
Comments
