August 24

Make Shortcodes Work In Text Widgets

Shortcodes are such wonderful things but sadly, by default, they do not run in widgets. So, when you have a very widget heavy theme, this can be a pain. Thankfully, there is an awfully simple fix. Simply copy and paste the code below into the functions.php file of your current theme.

add_filter( 'widget_text', 'do_shortcode' );


filter, functions, shortcode, widgets

You may also like

Force cPanel Password Reset

Force cPanel Password Reset
{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Get in touch

0 of 350