Skip to content

Instantly share code, notes, and snippets.

@spigists
Created June 11, 2013 22:00
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 spigists/5761125 to your computer and use it in GitHub Desktop.
Save spigists/5761125 to your computer and use it in GitHub Desktop.
Changes the Read More text when using the_excerpt
/**
* Changes the Read More text when using the_excerpt
*/
function new_excerpt_more($more) {
global $post;
return '<a class="moretag" href="'. get_permalink($post->ID) . '">Read the full article...</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