I want to show shortcodes in my excerpt. By default WP strips out all shortcodes, but then my experpt text is often incomplete.
I use the Wikipop Plugin to generate hyperlinks to Wikipedia. Like when the post starts with:
This article is all about [wikipop]Bill Gates[/wikipop], the founder of Microsoft..., WP doesn't just strip out the shortcode tags, but also whats between them. In this case the name Bill Gates. The excerpt then looks like:
This article is all about , the founder of Microsoft...
I have tried all kinds of suggestions, but nothing seems to work here. I use a Child Theme of TwentyTen and have added the following to my functions.php:
add_filter( 'the_excerpt', 'do_shortcode'); add_filter( 'get_the_excerpt', 'do_shortcode', 5 );
I also tried the following within the loop:
<?php echo do_shortcode(get_the_excerpt()); ?>
I'm stuck here, appreciate ANY help.