{"id":69,"date":"2015-01-29T22:59:35","date_gmt":"2015-01-29T22:59:35","guid":{"rendered":"http:\/\/www.ccrossan.com\/?p=69"},"modified":"2015-01-29T22:59:35","modified_gmt":"2015-01-29T22:59:35","slug":"hiding-featured-images-in-wordpress-blog-posts","status":"publish","type":"post","link":"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/","title":{"rendered":"Hiding Featured Images in WordPress Blog Posts"},"content":{"rendered":"\n<div class=\"twitter-share\"><a href=\"https:\/\/twitter.com\/intent\/tweet?via=crossan007\" class=\"twitter-share-button\">Tweet<\/a><\/div>\n<p>My wife recently asked me if she could hide the featured images in her blog posts. \u00a0She wanted the photos displayed on her home page and post listings, but not on the actual page for the blog post &#8211; She wanted to actually insert the image to her post at some point into the post:<\/p>\n<p id=\"YWmsiKI\"><img loading=\"lazy\" width=\"200\" height=\"577\" class=\"alignnone size-full wp-image-70 \" src=\"http:\/\/www.ccrossan.com\/wp-content\/uploads\/2015\/01\/img_54cabad0c820d.png\" alt=\"\" srcset=\"https:\/\/crossan007.dev\/blog\/wp-content\/uploads\/2015\/01\/img_54cabad0c820d.png 200w, https:\/\/crossan007.dev\/blog\/wp-content\/uploads\/2015\/01\/img_54cabad0c820d-104x300.png 104w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/><\/p>\n<p>I did some Googling, and found that most themes implement a &#8220;single.php&#8221; file. \u00a0In this file is a definition for how the individual blog posts render:<\/p>\n<blockquote><p>&lt;?php if (is_single()) : ?&gt;<br \/>\n&lt;article id=&#8221;post-&lt;?php the_ID(); ?&gt;&#8221; &lt;?php post_class(); ?&gt;&gt;<br \/>\n&lt;?php the_post_thumbnail(&#8216;featured&#8217;); ?&gt;<br \/>\n&lt;div id=&#8221;post-content&#8221;&gt;<br \/>\n&lt;?php the_title(&#8216;&lt;h1 id=&#8221;post-title&#8221;&gt;&#8217;, &#8216;&lt;\/h1&gt;&#8217;); ?&gt;<\/p><\/blockquote>\n<p>Of interest to me was the line<\/p>\n<blockquote><p>&lt;?php the_post_thumbnail(&#8216;featured&#8217;); ?&gt;<\/p><\/blockquote>\n<p>Which I simply commented out:<\/p>\n<blockquote><p>&lt;?php #the_post_thumbnail(&#8216;featured&#8217;); ?&gt;<\/p><\/blockquote>\n<p>And now, the featured image is not displayed at the top of the post, and she is free to insert the image anywhere she wishes:<\/p>\n<p id=\"nAPcgQh\"><img loading=\"lazy\" width=\"295\" height=\"436\" class=\"alignnone size-full wp-image-71 \" src=\"http:\/\/www.ccrossan.com\/wp-content\/uploads\/2015\/01\/img_54cabb015d413.png\" alt=\"\" srcset=\"https:\/\/crossan007.dev\/blog\/wp-content\/uploads\/2015\/01\/img_54cabb015d413.png 295w, https:\/\/crossan007.dev\/blog\/wp-content\/uploads\/2015\/01\/img_54cabb015d413-203x300.png 203w\" sizes=\"(max-width: 295px) 100vw, 295px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>So, with that, you should check out her blog: <a title=\"Anna's Alcove\" href=\"http:\/\/www.annasalcove.com\/\">Anna&#8217;s Alcove<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My wife recently asked me if she could hide the featured images in her blog posts. \u00a0She wanted the photos displayed on her home page and post listings, but not on the actual page for the blog post &#8211; She wanted to actually insert the image to her post at some point into the post: &hellip; <a href=\"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Hiding Featured Images in WordPress Blog Posts<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[37],"tags":[41,39,40,38],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hiding Featured Images in WordPress Blog Posts - Charles&#039; Blog\" \/>\n<meta property=\"og:description\" content=\"My wife recently asked me if she could hide the featured images in her blog posts. \u00a0She wanted the photos displayed on her home page and post listings, but not on the actual page for the blog post &#8211; She wanted to actually insert the image to her post at some point into the post: &hellip; Continue reading Hiding Featured Images in WordPress Blog Posts &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/\" \/>\n<meta property=\"og:site_name\" content=\"Charles&#039; Blog\" \/>\n<meta property=\"article:published_time\" content=\"2015-01-29T22:59:35+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.ccrossan.com\/wp-content\/uploads\/2015\/01\/img_54cabad0c820d.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"crossan007\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crossan007.dev\/blog\/#website\",\"url\":\"https:\/\/crossan007.dev\/blog\/\",\"name\":\"Charles&#039; Blog\",\"description\":\"SharePoint | PowerShell | Exchange | SCCM | Ubuntu | PHP | JavaScript | A\/V Live Production | More...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crossan007.dev\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"http:\/\/www.ccrossan.com\/wp-content\/uploads\/2015\/01\/img_54cabad0c820d.png\",\"contentUrl\":\"http:\/\/www.ccrossan.com\/wp-content\/uploads\/2015\/01\/img_54cabad0c820d.png\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/#webpage\",\"url\":\"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/\",\"name\":\"Hiding Featured Images in WordPress Blog Posts - Charles&#039; Blog\",\"isPartOf\":{\"@id\":\"https:\/\/crossan007.dev\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/#primaryimage\"},\"datePublished\":\"2015-01-29T22:59:35+00:00\",\"dateModified\":\"2015-01-29T22:59:35+00:00\",\"author\":{\"@id\":\"https:\/\/crossan007.dev\/blog\/#\/schema\/person\/bd99569cd81332c8fd866d023848b979\"},\"breadcrumb\":{\"@id\":\"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crossan007.dev\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hiding Featured Images in WordPress Blog Posts\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/crossan007.dev\/blog\/#\/schema\/person\/bd99569cd81332c8fd866d023848b979\",\"name\":\"crossan007\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/crossan007.dev\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fff72c74fb6a0da29accf0db83ad4b4b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fff72c74fb6a0da29accf0db83ad4b4b?s=96&d=mm&r=g\",\"caption\":\"crossan007\"},\"url\":\"https:\/\/crossan007.dev\/blog\/author\/crossan007\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/","og_locale":"en_US","og_type":"article","og_title":"Hiding Featured Images in WordPress Blog Posts - Charles&#039; Blog","og_description":"My wife recently asked me if she could hide the featured images in her blog posts. \u00a0She wanted the photos displayed on her home page and post listings, but not on the actual page for the blog post &#8211; She wanted to actually insert the image to her post at some point into the post: &hellip; Continue reading Hiding Featured Images in WordPress Blog Posts &rarr;","og_url":"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/","og_site_name":"Charles&#039; Blog","article_published_time":"2015-01-29T22:59:35+00:00","og_image":[{"url":"http:\/\/www.ccrossan.com\/wp-content\/uploads\/2015\/01\/img_54cabad0c820d.png"}],"twitter_misc":{"Written by":"crossan007","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/crossan007.dev\/blog\/#website","url":"https:\/\/crossan007.dev\/blog\/","name":"Charles&#039; Blog","description":"SharePoint | PowerShell | Exchange | SCCM | Ubuntu | PHP | JavaScript | A\/V Live Production | More...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crossan007.dev\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/#primaryimage","inLanguage":"en-US","url":"http:\/\/www.ccrossan.com\/wp-content\/uploads\/2015\/01\/img_54cabad0c820d.png","contentUrl":"http:\/\/www.ccrossan.com\/wp-content\/uploads\/2015\/01\/img_54cabad0c820d.png"},{"@type":"WebPage","@id":"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/#webpage","url":"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/","name":"Hiding Featured Images in WordPress Blog Posts - Charles&#039; Blog","isPartOf":{"@id":"https:\/\/crossan007.dev\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/#primaryimage"},"datePublished":"2015-01-29T22:59:35+00:00","dateModified":"2015-01-29T22:59:35+00:00","author":{"@id":"https:\/\/crossan007.dev\/blog\/#\/schema\/person\/bd99569cd81332c8fd866d023848b979"},"breadcrumb":{"@id":"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crossan007.dev\/blog\/wordpress\/hiding-featured-images-in-wordpress-blog-posts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crossan007.dev\/blog\/"},{"@type":"ListItem","position":2,"name":"Hiding Featured Images in WordPress Blog Posts"}]},{"@type":"Person","@id":"https:\/\/crossan007.dev\/blog\/#\/schema\/person\/bd99569cd81332c8fd866d023848b979","name":"crossan007","image":{"@type":"ImageObject","@id":"https:\/\/crossan007.dev\/blog\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/fff72c74fb6a0da29accf0db83ad4b4b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fff72c74fb6a0da29accf0db83ad4b4b?s=96&d=mm&r=g","caption":"crossan007"},"url":"https:\/\/crossan007.dev\/blog\/author\/crossan007\/"}]}},"_links":{"self":[{"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/posts\/69"}],"collection":[{"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":1,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":72,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/posts\/69\/revisions\/72"}],"wp:attachment":[{"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/crossan007.dev\/blog\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}