How to Use Shortcodes In WordPress Widgets

By default, WordPress does not allow the use of shortcodes in widgets. This is not a big problem as WordPress also makes it easy for the User to enable this functionality. If role-provided to do so, the User will need to add a line to the functions.php file.


add_filter('widget_text', 'do_shortcode');Or need to add shortcodes to the widget title
add_filter( 'widget_title', 'do_shortcode' );
Please reach out to the dedicated Enquire Account Manager or Enquire MAP Support team for further assistance.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article