Title: Shortcode in Widget enabled ?
Last modified: August 21, 2016

---

# Shortcode in Widget enabled ?

 *  Resolved [elody](https://wordpress.org/support/users/elody/)
 * (@elody)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-widget-enabled/)
 * Hello,
    I want to enter some shortcode in a Text Widget but it doesn’t work, 
   the shortcode appears as normal text … Though I found the line in functions.php
   that should enables the shortcode :
 *     ```
       // Enable shortcodes in widgets
       add_filter( 'widget_text', 'do_shortcode' );
       ```
   
 * Is there anything you changed somewhere that I need to change ?
    Thank you in
   advance

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Theme Author [eminozlem](https://wordpress.org/support/users/eminozlem/)
 * (@eminozlem)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-widget-enabled/#post-4768571)
 * I’ve tried using adding a shortcode via text widget, no problems here.
    See: 
   [http://s27.postimg.org/uqal466o3/wdgsc.jpg](http://s27.postimg.org/uqal466o3/wdgsc.jpg)
   Marking as resolved since I cant reproduce this. Let me know if you’ve further
   questions
 *  Thread Starter [elody](https://wordpress.org/support/users/elody/)
 * (@elody)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-widget-enabled/#post-4768711)
 * Hello eminozlem,
 * I’ve tried to include the form shortcode from Contact form 7 as in your example,
   and it’s working (I installed the plugin) 🙂
    But I still have normal text when
   I want to use this kind of shortcode : `[display-posts category="carousel" posts_per_page
   ="3"]` Or : `[map id='othermap' popup='false' html='My Location' height='400px'
   zoom='16' latitude='43.320392' longitude='-0.365741']`
 * Do you have the same problem or am I missing something ?
    Thx for your time
 *  Theme Author [eminozlem](https://wordpress.org/support/users/eminozlem/)
 * (@eminozlem)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-widget-enabled/#post-4768718)
 * Please change your theme and try again, if the widget works in another theme,
   but doesnt work in BSUL, report back and I’ll check with said plugin(s) -also
   please provide links to those-.
    I can’t possibly test it with all plugins (:
 *  Thread Starter [elody](https://wordpress.org/support/users/elody/)
 * (@elody)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-widget-enabled/#post-4768766)
 * I tried in the original Twenty Fourteen WordPress theme and it still doesn’t 
   work, but is it supposed to work so easy ?
    I didn’t install any plugin, I thought
   the shortcode would work with this single line in a page or a widget : `[display-
   posts category="carousel" posts_per_page="3"]` But it displays as normal text,
   same for the [map id…] shortcode. Thx for any explanation 🙂 (I also send you
   a direct link to my website by email)
 *  Theme Author [eminozlem](https://wordpress.org/support/users/eminozlem/)
 * (@eminozlem)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-widget-enabled/#post-4768768)
 * If it doesnt work with TwentyFourteen either, then it’s not a theme issue.
    Btw,
   if you did not install a plugin how do you expect the shortcode to work , where
   did you get that shortcode from anyway ?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Shortcode in Widget enabled ?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/bootstrap-ultimate/1.4.9/screenshot.
   png)
 * Bootstrap Ultimate
 * [Support Threads](https://wordpress.org/support/theme/bootstrap-ultimate/)
 * [Active Topics](https://wordpress.org/support/theme/bootstrap-ultimate/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/bootstrap-ultimate/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/bootstrap-ultimate/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [text widget](https://wordpress.org/support/topic-tag/text-widget/)

 * 5 replies
 * 2 participants
 * Last reply from: [eminozlem](https://wordpress.org/support/users/eminozlem/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-widget-enabled/#post-4768768)
 * Status: resolved