Wordpress Technology

Wordpress Tips, Tutorials, Hacks

Remove Symbol [...] From Post Excerpt

If in the current WordPress template the announcements are outputed by the_excerpt() function and the excerpt field is not filled, than we can watch the symbol [...].

In order to get rid of this symbol, you would only need to insert next code in the functions.php of your theme.

function trim_excerpt($text) {
  return rtrim($text,'[...]');
add_filter('get_the_excerpt', 'trim_excerpt');

We are all set!

Both comments and pings are currently closed.

© 2009 | Made by Vancouver Web Design | Internet Marketing