Create your first Shortcode in WordPress

WordPress provides awesome shortcode functionality. The shortcode is the simple set of the function used in WordPress post or pages. The shortcode enables Theme/Plugin developer to display special kind of content like Form, Menu, Listing, Recent Posts, Tags, Category, Related Posts etc… So, The shortcode is very useful for WordPress developer. let’s see how to create your first Shortcode in WordPress.

Continue reading Create your first Shortcode in WordPress

Enable Shortcodes in WordPress widget

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.

open functions.php  From your active theme. and add blow code for allow shortcode.

add_filter(‘widget_text’,’do_shortcode’);

Now you can a shortcode on widgets.

If you face any issue after adding this code write the comment.