Running wordpress shortcodes in widgets

Waqas Yousaf October 13, 2016 0 Comments

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’);

and thats about it. happy experimenting.

AboutWaqas Yousaf
Waqas Yousaf is a senior web applications developer and social media marketing wiz.
In Socials:

Leave a Reply

Your email address will not be published. Required fields are marked *