Display Shortcodes in Widgets – WordPress snippet
Many of us use plugins that are displayed trough shortcodes.
You know what shortcodes are, don’t you?
They are keywords in
When we need to display shortcodes in widgets though, they simply don’t work.
Well … here is the simple snippet to make them work !
in you functions.php just drop this piece of code.
<?php add_filter('widget_text', 'do_shortcode') ?>
That’s how you display Shortcodes in widgets.
I speak English, Greek and Serbian.
As a Web Producer i can deal with almost anything web design & development related.
As a freelancer, I charge only a small portion of the money you would pay to agencies to get your project done.
Latest posts by Nikola fivera Petrovic (see all)
- WordPress Site Administration Service – Why do you need it? - 8. February 2017.
- The best way to add custom functions to wordpress - 9. December 2016.
- Paper Text Area Created with CSS only – Editable Example - 9. July 2015.