Title: [Plugin: RSSImport] Using short code in sidebar widget
Last modified: August 20, 2016

---

# [Plugin: RSSImport] Using short code in sidebar widget

 *  [cadfile](https://wordpress.org/support/users/cadfile/)
 * (@cadfile)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-rssimport-using-short-code-in-sidebar-widget/)
 * I use a localhost setup for development using XAMPP where I try out plugins and
   do the CSS I want to change on my blogs.
 * I tried out RSSImport and it worked great – used the short code in a text widget
   since I wanted to add more than one feed in single widget box.
 * Moved it over to my production site – uses same setup theme and css as development
   and the shortcode didn’t work. Just showed the text of RSSImport with the options
   as text
 * Weird – have no idea why that is doing that.
 * I found a solution and it only takes one line of code in the functions.php file(
   from: [http://digwp.com/2010/03/shortcodes-in-widgets/](http://digwp.com/2010/03/shortcodes-in-widgets/))
 * `add_filter('widget_text', 'do_shortcode');`
 * Now the RSSImport shortcode works as it did under XAMMP
 * [http://wordpress.org/extend/plugins/rss-import/](http://wordpress.org/extend/plugins/rss-import/)

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

 *  [novaclic](https://wordpress.org/support/users/novaclic/)
 * (@novaclic)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-rssimport-using-short-code-in-sidebar-widget/#post-2297004)
 * Hello cadfile,
 * Thanks for sharing.
 * To make sure I understand: you refer to the functions.php file from the theme,
   right?
 *  Thread Starter [cadfile](https://wordpress.org/support/users/cadfile/)
 * (@cadfile)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-rssimport-using-short-code-in-sidebar-widget/#post-2297005)
 * Yes it was the functions.php file from the theme
 *  [pokinwilly](https://wordpress.org/support/users/pokinwilly/)
 * (@pokinwilly)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-rssimport-using-short-code-in-sidebar-widget/#post-2297009)
 * thanks for the info, I didn’t know it could be possible to use shortcodes in 
   widgets…
 *  [amahou](https://wordpress.org/support/users/amahou/)
 * (@amahou)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rssimport-using-short-code-in-sidebar-widget/#post-2297034)
 * [@cadfile](https://wordpress.org/support/users/cadfile/),
    Thanks a lot for sharing
   this. It solved my shortcode problem in text widgets.

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

The topic ‘[Plugin: RSSImport] Using short code in sidebar widget’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/rss-import.svg)
 * [RSSImport](https://wordpress.org/plugins/rss-import/)
 * [Support Threads](https://wordpress.org/support/plugin/rss-import/)
 * [Active Topics](https://wordpress.org/support/plugin/rss-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rss-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rss-import/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [amahou](https://wordpress.org/support/users/amahou/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-rssimport-using-short-code-in-sidebar-widget/#post-2297034)
 * Status: not resolved