Skip to content

Instantly share code, notes, and snippets.

@robneu
Forked from srikat/gist:7744576
Last active December 29, 2015 23:48
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 robneu/7744816 to your computer and use it in GitHub Desktop.
Save robneu/7744816 to your computer and use it in GitHub Desktop.
<?php
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