• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
WPFeed

WPFeed

  • News
  • Tutorials
    • WordPress Multisite
    • BuddyPress
    • Design
  • Reviews
    • Plugins
  • Roundups
  • Snippets
  • Giveaways
Home » BuddyPress » How to Enable Shortcodes in WordPress Widgets

How to Enable Shortcodes in WordPress Widgets

In this very short tutorial, I’m going to share a little snippet to enable shortcodes in WordPress widgets. By default, all shortcodes can only be used in post and page post types.

To add shortcode support in widgets, simply paste the following code in the functions.php file of your child theme:

Here’s the result after you’ve added the code:

enable-widgets

In this example, I’m using ET Shortcodes plugin by Elegant Themes. Simply adding this shortcode to your text widget will not get the same result.

Want something more? Stephanie Leary has a very comprehensive article on enabling the shortcode on everywhere else.

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar

Partnerships

For WP Deals and Discounts, visit WPCouponCode.com

Recent Posts

  • WordPress is a brilliant platform that is loaded with tons of stuff for websites.
  • How to Sync Stock & Price for WooCommerce Products
  • How to migrate a WooCommerce Store to a new site
  • How to Import WooCommerce Products
  • How to export WooCommerce Orders

Copyright © 2021 · WPFeed.com - A Project of TechAbout LLC.

  • About us
  • Advertise
  • Write for us
  • Terms and Conditions
  • Privacy Policy
  • Contact us