Re: shortcodes not working in post excerpt

32 views
Skip to first unread message

Casey Bisson

unread,
Jul 23, 2008, 12:05:37 PM7/23/08
to K.T. Lam, HKUST Library, scri...@googlegroups.com

I've submitted a bug to WordPress on this, but it has yet to get much
traction.

http://trac.wordpress.org/ticket/7093

My solution, for the time being, has been to add the filters in the
bSuite plugin, though as of today that fix is only in the trunk version:

http://svn.wp-plugins.org/bsuite/trunk/bsuite.php

The following code fixes the problem, you just need to put it in your
availability plugin or in amongst almost any other code that gets
executed in WP:

add_filter('the_content_rss', 'do_shortcode', 11);
add_filter('the_excerpt', 'do_shortcode', 11);
add_filter('the_excerpt_rss', 'do_shortcode', 11);

--Casey


On Jul 19, 2008, at 10:49 PM, K.T. Lam, HKUST Library wrote:

> I was testing Scriblio plugin version 2.5 from the trunk,
> with WordPress 2.5 (and 2.6 too). Found that the scriblio
> shortcodes (i.e. scrib_bookjacket, scrib_availability,
> scrib_taglink) does not work in post excerpt, although
> it works in the post content. The codes are just displayed
> as it is without any processing in the search result page,
> such as:
>
> [scrib_availability sourceid="bb1234567"]
>
> I assume wordpress's shortcodes api should work for both
> content and excerpt. What I did miss?
>
> Thanks,
> K.T.
>

Reply all
Reply to author
Forward
0 new messages