Allow Shortcodes in Widgets WordPress

Written by on September 9, 2012 in WordPress - No comments
wordpress-widgets

By default WordPress widgets don’t support (run) shortcodes. Luckily there is an easy way to turn this functionality on, add the following to your functions.php file:

add_filter('widget_text', 'do_shortcode');

Sponsors

About the Author

Mike Ilsley "ilz" is a Boston based website designer, front-end developer, WordPress addict, owner of Beantown Design, and exclusive ThemeForest author. Follow him on Twitter and Facebook, and don't forget to subscribe to the WebDesign&Such email RSS feed. Also, check out his latest project, jQueryMobileShowcase.com.