June 23, 2013 at 6:30 am
#2890
Keymaster
Hi Jenny
Try to add this on your functions.php (preferably on a child theme)
function modify_excerpt( $text ) {
$text = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', $text);
return $text;
}
add_filter( 'the_excerpt', 'modify_excerpt' );