How To Enable Shortcode Execution in Text Widgets - WPTRINITY

How To Enable Shortcode Execution in Text Widgets

WordPress does not execute shortcodes inside text widgets. To fix this you need to simply add this code to your theme’s functions file.

// Enable shortcodes in text widgets
add_filter('widget_text','do_shortcode');