How do you enable shortcodes in widgets

Problem

Shortcodes not working in widget area

Solution

Add the following to your theme’s functions.php file.

add_filter( 'widget_text', 'do_shortcode' );