Use Shortcodes in WordPress Widget without Plugins

You can add this to your function to enable your short code in widget without pain.

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

Author: Justin Soo

https://plus.google.com/105604283199591348183