Created
January 28, 2015 15:55
-
-
Save davechu/4264a514c5c62a545463 to your computer and use it in GitHub Desktop.
Change the Read More text to something else in WordPress. Example is en français. This code would go into your functions.php. It could also work in a plugin.
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
add_filter('excerpt_more', 'new_excerpt_more'); | |
function new_excerpt_more($more) { | |
$var = get_the_ID(); | |
return ' <a href="'. get_permalink($var) . '">Lire Plus...</a>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment