Custom Shortcodes Is Not Working In Sidebar Widgets?


Hello Friends!!

Hope you all are doing well 🙂

If you have created your own new custom shortcode and it’s not working in text sidebar widget then no need to worry. just add given below hooks filter in your theme function.php file OR in your plugin file where you are want to add new sortcode.

add_filter( 'widget_text', 'do_shortcode' );

Enjoy Code!!

Advertisements

Sr. Software Engineer

Tagged with: , , ,
Posted in Wordpress

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

%d bloggers like this: