Add checkbox to Featured Image metabox

This adds a checkbox to the Featured Image metabox.

You can then use the ea_featured_image_display meta value to determine if the featured image should be shown. Ex:

* Featured Image
function ea_single_featured_image() {
$show = get_post_meta( get_the_ID(), 'ea_featured_image_display', true );
if( is_single() && has_post_thumbnail() && $show )
the_post_thumbnail( 'large' );
add_action( 'genesis_entry_header', 'ea_single_featured_image', 11 );
view raw single.php hosted with ❤ by GitHub

Featured Image metabox

Bill Erickson

Bill Erickson is a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk