How to Use Shortcodes In WordPress Widgets

How to Use Shortcodes In WordPress Widgets

blobid0.png

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?
0 out of 0 found this helpful