Powered By WPOptinForm

Have you been having problems with short  codes inside of widgets.  We all love short codes and after months of fighting with them, I stumbled across the following code in a fourm.

And of course, I had to slap myself because it was so simple.

 

All you do is edit the functions.php file  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.

 

Filed under: Marketing Online