Enable Shortcodes in WordPress widget

WordPress by default does not allow to add shortcodes in the widget. So let’s see how to how to enable shortcode in WordPress widget. it’s too easy to allow shortcode in a widget. just follow below steps.

open functions.php  From your active theme. and add blow code for allow shortcode.


Now you can a shortcode on widgets.

If you face any issue after adding this code write the comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s