Enabling shortcodes in WordPress excerpts aren’t automatic, but here’s the override

To enable shortcodes in WordPress excerpts you have to add this to your active theme’s (hopefully a child theme) functions.php file:

add_filter( 'the_excerpt', 'shortcode_unautop');
add_filter( 'the_excerpt', 'do_shortcode');

About Author:

Senior Cloud Software Engineer and 25+ years experienced video production, video editing and 3D animation services for a variety of global clients including local video production here in Jacksonville, Florida.

Leave a Comment

Your email address will not be published. Required fields are marked *