AsidesBlogDevelopmentResourcesWordpress

Enable Shortcodes in WordPress Sidebar Widgets

By January 10, 2017 No Comments

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