Remove Symbol [...] From Post Excerpt - Blogging for Beginners learn Seo online free step by step

Remove Symbol [...] From Post Excerpt

If in the current WordPress template the announcements are outputted 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!
Tags: remove [...], wordpress hack, wordpress tip

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.