we still remember mitch hedberg

A severed foot is the ultimate stocking stuffer.

Sep 6th 2012

Add shortcodes to widgets in WordPress

Found this great post that explained how to add shortcodes (from plugins, etc) to your widgets in WordPress.

You just need to add this snippet to your theme’s functions.php:

/* Execute Shortcodes In Text Widgets */
add_filter('widget_text', 'do_shortcode');

And voila!

Comments are closed.