{"id":30959,"date":"2010-04-25T16:16:56","date_gmt":"2010-04-25T20:16:56","guid":{"rendered":"http:\/\/wpmu.org\/?p=30959"},"modified":"2012-10-02T23:12:48","modified_gmt":"2012-10-03T03:12:48","slug":"daily-tip-enable-post-thumbnails-in-your-wordpress-theme","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/daily-tip-enable-post-thumbnails-in-your-wordpress-theme\/","title":{"rendered":"Enable Post Thumbnails in Your WordPress Theme"},"content":{"rendered":"<p>If you want to have post thumbnails appear on your homepage, it&#8217;s very easy to add this to your WordPress theme ever since 2.9.<\/p>\n<p>Just open <i>functions.php<\/i> and add:<\/p>\n<p><code>add_theme_support( 'post-thumbnails' );<\/code><\/p>\n<p>Then within your homepage template add the following tag:<\/p>\n<p><code>&lt;?php the_post_thumbnail(); ?&gt;<\/code><\/p>\n<p>Now you&#8217;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 the right sidebar of the post editor just below categories and tags.<\/p>\n<p>More information about how to use post thumbnails and adjust their default sizes can be found at <a href=\"http:\/\/markjaquith.wordpress.com\/2009\/12\/23\/new-in-wordpress-2-9-post-thumbnail-images\/\" rel=\"noopener\" target=\"_blank\">Mark Jaquith&#8217;s tutorial<\/a> on the subject.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to have post thumbnails appear on your homepage, it&#8217;s very easy to add this to your WordPress theme ever since 2.9. Just open functions.php and add: add_theme_support( &#8216;post-thumbnails&#8217; ); Then within your homepage template add the following tag: &lt;?php the_post_thumbnail(); ?&gt; Now you&#8217;ll be able to set the Featured Image or the [&hellip;]<\/p>\n","protected":false},"author":4099,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[557],"tags":[1234],"tutorials_categories":[],"class_list":["post-30959","post","type-post","status-publish","format-standard","hentry","category-development","tag-thumbnails"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/30959","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/4099"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=30959"}],"version-history":[{"count":2,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/30959\/revisions"}],"predecessor-version":[{"id":181578,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/30959\/revisions\/181578"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=30959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=30959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=30959"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=30959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}