List-Category-Posts icon indicating copy to clipboard operation
List-Category-Posts copied to clipboard

allow shortcodes to work in excerpts

Open ohacastle opened this issue 11 years ago • 3 comments

Hello,

Any chance there's something we can do to make shortcodes load in the excerpts?

I love that your plug-in loads excerpts, but it only shows text and html. I tried using a shortcode in my excerpt and nothing showed.

My intent is to have my product "add-to-cart" shortcodes in the excerpts.

Thanks!

ohacastle avatar Apr 06 '13 03:04 ohacastle

Or allow shortcodes to work in custom fields, either one!

ohacastle avatar Apr 06 '13 05:04 ohacastle

The solution I suggest is to add a shortcode parameter excerpt_shortcodes that if set to yes would render the shortcodes. The code would have to include a check for the [catlist] shortcode and strip it off, while allowing other shortcodes.

klemens-st avatar Feb 09 '18 11:02 klemens-st

The code would have to include a check for the [catlist] shortcode and strip it off, while allowing other shortcodes.

Actually, now when I think of it I no longer agree with this, if someone is allowing shortcodes they probably know what they are doing and there should be no limits.

klemens-st avatar Jul 02 '20 18:07 klemens-st