Last active
August 29, 2015 14:05
-
-
Save joliveras/a8d83d1290a2c818fc1c to your computer and use it in GitHub Desktop.
Wordpress: Excerpt read more link with language support
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
<?php | |
function excerpt_read_more_link($output) { | |
global $post; | |
return $output . '<p><a href="'. get_permalink($post->ID) . '">' . translate('Read more', 'textdomain' ) . '</a></p>'; | |
} | |
add_filter('the_excerpt', 'excerpt_read_more_link'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment