Shortcodes – bbird.me http://bbird.me WordPress quick tips Wed, 08 Aug 2018 16:39:07 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.8 How to enable shortcodes in text widgets http://bbird.me/how-to-enable-shortcodes-in-widgets/ http://bbird.me/how-to-enable-shortcodes-in-widgets/#respond Tue, 01 Mar 2016 09:09:23 +0000 http://bbird.me/?p=385 This could be one of the shortest tutorials ever, but still, some may find it useful – in order to

Post How to enable shortcodes in text widgets je prvi puta viđen na bbird.me.

]]>
This could be one of the shortest tutorials ever, but still, some may find it useful – in order to activate the ability of regular text widgets to render shortcodes, all that needs to be done is the following:

add_filter('widget_text', 'do_shortcode');

You would put this into functions.php or in custom functions plugin. And that’s all. No need for custom plugins that offer custom shortcode widgets, PHP widgets with do_shortcode(), etc.

 

Post How to enable shortcodes in text widgets je prvi puta viđen na bbird.me.

]]>
http://bbird.me/how-to-enable-shortcodes-in-widgets/feed/ 0