How to Enable Short-Code Using Text Widget in Sidebar Area of WordPress Website

Share to Friends:

Sometimes we need to add shortcode to perform plugin in our own place. Some plugin work based on short code and some plugin provide this shortcode as an extra feature. If you are looking for add shortcode in your websites sidebar/widget you might see it’s just showing the code you are put using text widget, like [shotcode][/shortcode] then you might see this same text instead of plugins work. Then have to understand your themes is not support shortcode in sidebar widget. Now you have to put this code in your themes function.php file and click update:

add_filter('widget_text', 'do_shortcode');

I hope this will solve your widget shortcode problem, and your plugin must be working now. Watch this video get live idea.