Skip to content

Instantly share code, notes, and snippets.

@pradeepdotco
Last active May 26, 2022 23:41
Show Gist options
  • Save pradeepdotco/38fa219f25813afe3531 to your computer and use it in GitHub Desktop.
Save pradeepdotco/38fa219f25813afe3531 to your computer and use it in GitHub Desktop.
Add Featured Image Genesis
/* Code to Display Featured Image on top of the post */
add_action( 'genesis_before_entry', 'featured_post_image', 8 );
function featured_post_image() {
if ( ! is_singular( 'post' ) ) return;
the_post_thumbnail('post-image');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment