Skip to content

Instantly share code, notes, and snippets.

@WebEndevSnippets
Created October 28, 2012 15:20
Show Gist options
  • Save WebEndevSnippets/3968881 to your computer and use it in GitHub Desktop.
Save WebEndevSnippets/3968881 to your computer and use it in GitHub Desktop.
WordPress: Customize 'Read More' on Excerpts
add_filter( 'excerpt_more', 'we_read_more_link' );
add_filter( 'get_the_content_more_link', 'we_read_more_link' );
add_filter( 'the_content_more_link', 'we_read_more_link' );
/**
* Customize Read More on Excerpts
*
*/
function we_read_more_link() {
return '<a class="more-link" href="' . get_permalink() . '"> [More &#x2026;]</a>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment