Created
June 11, 2013 22:00
-
-
Save spigists/5761125 to your computer and use it in GitHub Desktop.
Changes the Read More text when using the_excerpt
This file contains hidden or 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
/** | |
* 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