AsidesBlogDevelopmentResourcesWordpress

Enable Shortcodes in WordPress Sidebar Widgets

I have a ton of WordPress/Magento/Linux code snippets and methods that I’ve saved over the years, I plan to post them all here eventually for safe keeping, and to share with the world, all under my asides category – enjoy.

Fastest way to enable shortcodes in your WordPress “text” Sidebar Widgets:

1 – Open functions.php

2 – Copy and paste this code to the bottom of it (after everything)

/* Enable Shortcodes in Widgets */
add_filter('widget_text', 'do_shortcode');

Cheers!

 

Leave a Reply

Let's get in touch!

Nicholas Manderfield

Ecommerce + Internet Marketer

(920) 843-8442

chat@nickmanderfield.com

Currently Based in Appleton, WI