Below is the code to enable the use of shortcodes in WordPress text widgets.
<?php | |
//* Enable the use of shortcodes in text widgets | |
add_filter('widget_text', 'do_shortcode'); |
Below is the code to enable the use of shortcodes in WordPress text widgets.
<?php | |
//* Enable the use of shortcodes in text widgets | |
add_filter('widget_text', 'do_shortcode'); |