WPIntell

Source evidence

Nested Shortcodes in Post Excerpts?

Nested Shortcodes by Outerbridge · support · 2013-06-17T16:46:00+00:00

mixedsentiment
mediumseverity
0.66relevance
9replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 15 rows with source links

6.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

14 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
deyson resolved
Hello and good day. I was wondering if this would also work in Post excerpts? I was able to get it to work in a page but not in a Post excerpt. Thank you and have a wonderful day! _Deyson http://wordpress.org/extend/plugins/nested-shortcodes/ 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 Thank you Cubecolor! 🙂 Ditto! 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.wordpress.org/query?status=closed&group=resolution&milestone=3.5.2 I see what you mean. Oh well, I guess I will have to find another way to achieve me goal 🙂 Thank you 🙂

Comments

9 shown
Outerbridge 2013-06-18T09:29:00+00:00

Hi Deyson No, post excerpts don’t “execute” any shortcodes, HTML, etc. Regards ^Mike

cubecolour 2013-06-18T09:35:00+00:00

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');

Outerbridge 2013-06-18T09:42:00+00:00

Thanks Colorcube. Those filters are theme only?

cubecolour 2013-06-18T10:02:00+00:00

The filters will work for plugins as well

deyson 2013-06-18T10:44:00+00:00

Thank you Cubecolor! 🙂

Outerbridge 2013-06-18T11:04:00+00:00

Ditto!

deyson 2013-06-27T15:42:00+00:00

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 🙂

Outerbridge 2013-06-28T08:08:00+00:00

Can’t see anything obvious from the list of fixes in 3.5.2 as to why that might be. https://core.trac.wordpress.org/query?status=closed&group=resolution&milestone=3.5.2

deyson 2013-06-28T10:23:00+00:00

I see what you mean. Oh well, I guess I will have to find another way to achieve me goal 🙂 Thank you 🙂