Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created April 27, 2018 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/3d7cebee45f31d189f6d2f3e24933bde to your computer and use it in GitHub Desktop.
Save billerickson/3d7cebee45f31d189f6d2f3e24933bde to your computer and use it in GitHub Desktop.
<?php
/**
* 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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment