Want to know what WordPress Theme a site is using? Check Out Now!

How to Enable Shortcodes in Text Widget in WordPress?

Ever tried to paste the shortcode in the text widget and found out that it didn’t work?

By default, shortcodes don’t work with the text widget in WordPress.

You can easily enable shortcodes in the text widget with the ‘widget_text’ WordPress filter.

* Enable Shortcode in Text Widget
add_filter( 'widget_text', 'do_shortcode' );

Leave a Reply

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