Top

Daily Tip: Enable Post Thumbnails in Your WordPress Theme

April 25, 2010

If you want to have post thumbnails appear on your homepage, it’s very easy to add this to your WordPress theme ever since 2.9. Just open functions.php and add:

add_theme_support( 'post-thumbnails' );

Then within your homepage template add the following tag:

<?php the_post_thumbnail(); ?>

Now you’ll be able to set the Featured Image or the Thumbnail Image for the post. The settings for this are in a widget that will appear in right sidebar of the post editor just below categories and tags. More information about how use post thumbnails and adjust their default sizes can be found at Mark Jaquith’s tutorial on the subject.

Tweet This Post

Comments

Got something to say?

Bottom
Article Archive  |  This site is a historical archive of pressography.com, a WordPress plugin and theme blog that published between 2006 and 2012. It is preserved for reference and is not operated by, affiliated with, or endorsed by its original authors. Nothing here is for sale and no form on this site is active. If you are the original owner and would like this domain returned, please get in touch.