Learn how to make the WordPress Featured Image only display on certain specific posts
Some Genesis themes display the Featured Image on single posts by default, others do not. It’s a pretty easy snippet to throw into
functions.php to display the image on all posts…
That’s great, but sometimes you may not want the Featured Image to show on certain posts. Maybe you’re using a custom full-width template to style a featured post or you just want to display another image at the top of the post.
With a quick Advanced Custom Fields group and a minor edit to the above code, you can add a checkbox to turn off the Featured Image at will.
Add a single true/false field. You’ll see I selected the Default Value as ‘true’. That’s because I want it to display on everything except what I uncheck. I also moved the ‘Position’ to Side so I can have it display above the image meta box.
Now head over to
functions.php (or preferably your custom plugin) and slap in the following code, ensuring
'show_image_single' matches the field name you chose.
You’re done. Go check out a post and look at your sidebar. If you want to hide the image, uncheck the box.