add_filter('the_excerpt','myRemoveFunc'); function myRemoveFunc(){ return mb_strimwidth(strip_shortcodes(get_the_content()), 0, 220, '...'); }