Categories
WordPress

Shortcodes in a WordPress Widget

By default, shortcodes don't work in WordPress widgets.  But a simple one-line code tweak will fix that.

Simply add the following line to functions.php.

add_filter('widget_text', 'do_shortcode');

For details, see the post below.

http://wordpress.org/support/topic/how-to-make-shortcodes-work-in-a-widget