WordPress is the most popular CMS ( Content Management System ), and Widget is the most important part of the CMS Because we interact more user using the widget. So let’s see, How to create your first widget on WordPress.
WordPress by default does not allow to add shortcodes in the widget. So let’s see how to how to enable shortcode in WordPress widget. it’s too easy to allow shortcode in a widget. just follow below steps.
functions.php From your active theme. and add blow code for allow shortcode.
Now you can a shortcode on widgets.
If you face any issue after adding this code write the comment.