Remove the suffix dot from the excerpt
March 14, 2009 · Print This Article
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?
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’);





















[...] is dirty. It is better without the [...] suffix. Then, I try to remove the suffix and I find great reference to do [...]