Created
October 28, 2012 15:20
-
-
Save WebEndevSnippets/3968881 to your computer and use it in GitHub Desktop.
WordPress: Customize 'Read More' on Excerpts
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_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 …]</a>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment