WordPress – using short codes in a text widget (html widget)

Without further ADO, and miles of text for search engines – all for people 🙂 – how to add WordPress ability to use short codes in the text widget or html widget (principle works in all widgets where it is possible to paste text)

To add this functionality enough to the file of active theme function.php add only one line:

Now you can easily insert shortcodes in the widget and they will work as in normal posts and pages.

PS + Lyric.

As always a little note for yourself with only basic information, and can someone and useful. ATO somehow got to read “kilometer” unnecessary SEO texts to find the one line of code. It is a pity that with this approach, and I don’t expect the search to at least get to Shine, but for regular readers I think will be useful.

Leave a Reply

Your email address will not be published. Required fields are marked *