
Did you ever wondered why the the_excerpt() function always display [...] at the end of the post excerpt? To be honest, I don’t find this very beautiful. So, what about remove it? Just read on.

Did you ever wondered why the the_excerpt() function always display [...] at the end of the post excerpt? To be honest, I don’t find this very beautiful. So, what about remove it? Just read on.
To get rid of the [...] at the end of the post excerpt, simply paste the following function in the functions.php file from your theme:
function trim_excerpt($text) {
return rtrim($text,'[...]');
}
add_filter('get_the_excerpt', 'trim_excerpt');
And you're done! Goodbye [...]
By the way, I recently started a contest on Cats Who Code, where you can win premium WordPress themes. Sounds good to you? Click here to join.
4 Responses
If i paste the above code in the functions.php its not removing [...] excerpt, still i can see the excerpt on home page can you please help me on this
This code is not working for me
Not really working
Works Great Thanks for the quick tip
Trackbacks: