Running wordpress shortcodes in widgets

WordPress bares to add shortcodes to widges, wordpress would tweet shortcodes just as regular text. Its good thing by security point of view but you can make short codes run in widgets. All you have to do is to add this little piece of code in functions.php

[php] add_filter(‘widget_text’, ‘do_shortcode’);
[/php]

and thats about it. happy experimenting.

Read More
Waqas Yousaf October 13, 2016 0 Comments