Skip to content

Instantly share code, notes, and snippets.

@rodgtr1
Created April 12, 2018 02:24
Show Gist options
  • Save rodgtr1/c3c9a7cf3fe06621c776c4512f98ff11 to your computer and use it in GitHub Desktop.
Save rodgtr1/c3c9a7cf3fe06621c776c4512f98ff11 to your computer and use it in GitHub Desktop.
Add a Read More Link to Post Excerpt
// Add Read More link to Excerpt
function new_excerpt_more($more) {
global $post;
return '… <a href="'. get_permalink($post->ID) . '">' . 'Read More &raquo;' . '</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