
You know it, I love shortcodes, and wrote about time some days ago. But a very frustrating thing is that you can’t add shortcode in sidebar Widgets. You can’t? yes, unless you read that recipe!

You know it, I love shortcodes, and wrote about time some days ago. But a very frustrating thing is that you can’t add shortcode in sidebar Widgets. You can’t? yes, unless you read that recipe!
To allow shortcodes in sidebar widgets, simply edit the functions.php file from your them and add the following code:
add_filter('widget_text', 'do_shortcode');
Once you saved the file, you can now add as many shortcodes as you want in sidebar widgets.
Credits goes to English Mike for this awesome recipe!
14 Responses
Another good one..
Thank you..
I love to read these tips.
@Sarbjit Singh: Thanks! Glad you enjoy reading WpRecipes!
Shortcodes makes things easy. Really.
Don’t work in IE ?
@Eduard : Who cares about IE anyways?
This is awesome. Great help.
Trackbacks: