Skip to content

Instantly share code, notes, and snippets.

@pradeepdotco
Last active May 26, 2022
Embed
What would you like to do?
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