-
-
Save anythinggraphic/6c0f7f650bad0f3f31915709cf1ba064 to your computer and use it in GitHub Desktop.
Revisions
-
anythinggraphic revised this gist
Nov 16, 2016 . 1 changed file with 4 additions and 3 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,8 +1,9 @@ <?php /* Add "Read More" link to hand-crafted excerpts ----------------------------------------------------------------------------------------*/ add_filter('get_the_excerpt', 'ag_manual_excerpt_read_more_link'); function ag_manual_excerpt_read_more_link($excerpt) { $excerpt_more = ''; if (has_excerpt() && ! is_attachment() && get_post_type() == 'post') { $excerpt_more = ' <a href="' . get_permalink() . '">[Continue reading] <span class="screen-reader-text">' . get_the_title() . '</span></a>'; -
anythinggraphic revised this gist
Nov 16, 2016 . No changes.There are no files selected for viewing
-
Deaner666 revised this gist
Jul 22, 2015 . 1 changed file with 5 additions and 5 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,9 +3,9 @@ // Add "Read More" link to hand-crafted excerpts add_filter('get_the_excerpt', 'wpm_manual_excerpt_read_more_link'); function wpm_manual_excerpt_read_more_link($excerpt) { $excerpt_more = ''; if (has_excerpt() && ! is_attachment() && get_post_type() == 'post') { $excerpt_more = ' <a href="' . get_permalink() . '">[Continue reading] <span class="screen-reader-text">' . get_the_title() . '</span></a>'; } return $excerpt . $excerpt_more; } -
Deaner666 revised this gist
Jan 20, 2015 . 1 changed file with 2 additions and 0 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,3 +1,5 @@ <?php // Add "Read More" link to hand-crafted excerpts add_filter('get_the_excerpt', 'wpm_manual_excerpt_read_more_link'); function wpm_manual_excerpt_read_more_link($excerpt) { -
Deaner666 created this gist
Jan 20, 2015 .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,9 @@ // Add "Read More" link to hand-crafted excerpts add_filter('get_the_excerpt', 'wpm_manual_excerpt_read_more_link'); function wpm_manual_excerpt_read_more_link($excerpt) { $excerpt_more = ''; if( has_excerpt() ) { $excerpt_more = ' <a href="' . get_permalink() . '">[Continue reading]</a>'; } return $excerpt . $excerpt_more; }