-
-
Save billerickson/3d7cebee45f31d189f6d2f3e24933bde to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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