Last active
December 29, 2015 23:39
-
-
Save srikat/7744576 to your computer and use it in GitHub Desktop.
Revisions
-
srikat revised this gist
Dec 3, 2013 . 1 changed file with 3 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,11 +3,10 @@ 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; } -
srikat revised this gist
Dec 2, 2013 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,9 +4,10 @@ function sk_show_page_excerpt() { $the_excerpt = get_the_excerpt(); if ( ! is_page() || empty( $the_excerpt ) ) return; echo $the_excerpt; } -
srikat revised this gist
Dec 2, 2013 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,10 +3,10 @@ add_action ( 'genesis_entry_header', 'sk_show_page_excerpt' ); function sk_show_page_excerpt() { $the_excerpt = get_the_excerpt(); if ( ! is_page() || empty( $the_excerpt ) ) { return; } echo $the_excerpt; } -
srikat revised this gist
Dec 2, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ add_post_type_support('page', 'excerpt'); add_action ( 'genesis_entry_header', 'sk_show_page_excerpt' ); function sk_show_page_excerpt() { global $post; if ( !is_page() || ('' == $post->post_excerpt) ) -
srikat created this gist
Dec 2, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ add_post_type_support('page', 'excerpt'); add_action ( 'genesis_entry_header', 'sk_show_excerpt' ); function sk_show_excerpt() { global $post; if ( !is_page() || ('' == $post->post_excerpt) ) return; the_excerpt(); }