Use directly in the templates.
echo strip_shortcodes( get_the_excerpt() );
how does it work as follows ?
add_filter('the_excerpt', 'strip_shortcodes');
or
add_filter('get_the_excerpt', 'strip_shortcodes');
Use directly in the templates.
echo strip_shortcodes( get_the_excerpt() );
how does it work as follows ?
add_filter('the_excerpt', 'strip_shortcodes');
or
add_filter('get_the_excerpt', 'strip_shortcodes');