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!

Leave a trackback from your own site.

One Response to “Remove Symbol [...] From Post Excerpt”

  1. Oh heck … I

    ‘ve spotted this [ ] on my site and so it looks like another skimp on AdSimple. I like the theme as it’s … er simple. But it’s doing my head in as I am not a coder and just want to tweak it.

    I don’t feel confident about putting this fix into the code to be honest… but now I know there’s a reason and a way to get rid of those marks.

    Ta.

Leave a Reply

You must be logged in to post a comment.

© 2009 | Made by Vancouver Web Design | Internet Marketing