Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active December 29, 2015 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save srikat/7744576 to your computer and use it in GitHub Desktop.
Save srikat/7744576 to your computer and use it in GitHub Desktop.
Show static Page's manual excerpt (if present) below title in Genesis
add_post_type_support('page', 'excerpt');
add_action ( 'genesis_entry_header', 'sk_show_page_excerpt' );
function sk_show_page_excerpt() {
$post = get_post( get_the_ID() );
$the_excerpt = $post->post_excerpt;
if ( !is_page() || empty( $the_excerpt ) )
return;
echo $the_excerpt;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment