Hi Deyson
No, post excerpts don’t “execute” any shortcodes, HTML, etc.
Regards
^Mike
You can try adding these lines to the functions.php in your theme to enable shortcodes in excerpts,
add_filter( 'the_excerpt', 'shortcode_unautop');
add_filter( 'the_excerpt', 'do_shortcode');
Thanks Colorcube. Those filters are theme only?
The filters will work for plugins as well
Thread Starter
deyson
(@deyson)
I think I spoke too soon. It seems with the latest wordpress update my nested short codes do not work in Excerpts. I added the above code to my functions.php but no nesting works.
Any advice? Thank you 🙂
Can’t see anything obvious from the list of fixes in 3.5.2 as to why that might be. https://core.trac.ww.wp.xz.cn/query?status=closed&group=resolution&milestone=3.5.2
Thread Starter
deyson
(@deyson)
I see what you mean.
Oh well, I guess I will have to find another way to achieve me goal 🙂
Thank you 🙂