Want create site? Find Free WordPress Themes and plugins.

Hi there, Today I would like to write a simple code snippets on enable shortcodes in WordPress text widgets and I will show you how to use shortcode in your WordPress sidebar.

Shortcodes can be used to increase the functionality of WordPress, whilst saving time on having to manually write code every time you want a specific function to be applied to one of your posts.

Code Snippet:

Add this function below in functions.php file. To allow shortcodes in sidebar widgets, simply edit the functions.php file from your them and add the following code:

add_filter('widget_text', 'do_shortcode');

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face – we are here to solve your problems.

Did you find apk for android? You can find new Free Android Games and apps.
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

Posted by Editorial Staff