Replace Default WordPress Excerpt Ellipsis With Read More Link

Add this to your functions.php file. It will replace the default […] at the end of your excerpt with a “Read More →” link.

{code type=php}
function replace_excerpt($content) {
return str_replace(‘[…]’,
Read More →‘,
$content
);
}
add_filter(‘the_excerpt’, ‘replace_excerpt’);
{/code}

Want to Submit a Daily Tip to WPMU.org?

If you’ve got a great tip for WordPress, WPMU, or BuddyPress users, send it our way on Twitter: @wpmuorg and we’ll happily credit you. Create a tweetable title and let us know if you have more info or an article you’d like to link it to.