Created
April 12, 2018 02:24
-
-
Save rodgtr1/c3c9a7cf3fe06621c776c4512f98ff11 to your computer and use it in GitHub Desktop.
Add a Read More Link to Post Excerpt
This file contains 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 characters
// Add Read More link to Excerpt | |
function new_excerpt_more($more) { | |
global $post; | |
return '… <a href="'. get_permalink($post->ID) . '">' . 'Read More »' . '</a>'; | |
} | |
add_filter('excerpt_more', 'new_excerpt_more'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment