Plugin Directory

Test out the new Plugin Directory and let us know what you think.

amr shortcode any widget

Include any widget in a page for any theme. [do_widget widgetname ] or [do_widget "widget name" ] [do_widget id=widgetnamedashed-n ]or inc

Version 3.3

  • Retested on wordpres 4.5 and 4.5.1-alpha
  • Re-instated the saving of widgets in the shortcode sidebar on theme switch and the reloading of these saved widgets when theme is reactivated (Was commented out for awhile back in 2014, but appears to be working well and very useful when you changing a theme but maybe forgotten about this page that has widget on it - yeah that could be bad !

Version 3.2

  • tweaked some error messages and handle situation better where there are no widgets or possibly empty sidebars.

Version 3.1

  • added code for the widget-id to appear in the widget settings window.
  • removed lots of the 'debug' as it will hopefully no longer be needed.
  • most error messages will now be returned in the shortcode, not echoed at top of page.
  • the do_widget_debug lists less, but hopefully more usefully a list of the do_widget and do_widget_area options based on your sidebars and the widgets in them.

Version 3

  • added code to not output anything if in admin (eg: in edit/save mode) in case something has forced application of content filters when saving (and not all widget stuff is active, so errors are output.
  • prefixed unprefixed function names to avoid conflicts

Version 2.9

  • in debug help, the link to the installation page help was not properly setup. Fixed.

Version 2.8

  • Tested on 4.3.1
  • No real functional change.
  • Tweaked debug info to look a little prettier. Also some error messages will not show unless you haev requested debug (?do_widiet_debug) to try to avoid the message that some genesis theme users are experiencing. I have not been able to recreate this with the genesis theme myself - it might be a plugin that they are using.

Version 2.6

  • Tested on 4.2
  • Removed from admin settings area the use of add_query_arg (unnecessary)
  • Added esc_url to widget id 'debug' oage just in case (it is only accessed by logged in admin, but lets be safe and keep everyone happy if the see the add_query_arg and remove_query_arg

Version 2.5

  • Tested on 4.1.1, Linked to the settings help page from the plugin action menu.
  • Changed the readme a bit to try further aid understanding and reduce support issues
  • Updated some screenshots.

Version 2.4

  • Tested on 4.1, Cleaned up the readme, Lang file for info page - most texts.

Version 2.3

  • Fixed some widget area class options that were not working.
  • Added a widget area debug option to make it easier to find how your theme has stored it's widget area / sidebar ids. They are not always easy to find.
  • Tested on 3.9.1
  • Updated readme

Version 2.2

  • Attempt to add more styling control.
  • Add widget_classes=none to reverse out widget type class. NOte to totally override wordpress widget
  • Add widget_area_class=none

Version 2.1

  • Bug Fix - last sidebar registered by theme was being overwritten by the attempt to copy the themes sidebar arguments so that cleverly (hopefully) the shortcode widgets would pick up the same styling. Fixed now. Now it really does pickup the first sidebars styling - with devasting consquence in twenty-fourteen theme - yes white text on white background is not fun to read. But on other themes it works a treat.

Version 2

  • Shortcode widget id changed so that wordpress will save the shortcode settings per theme.
  • Added Code to auto upgrade, but just in case please check your widgets page. Look at the inactive widgets if the widgets are not in your widgets for shortcodes sidebar.
  • Logic added on theme switching to save shortcode widget settings and restore them after the theme switch, so you can play with themes and not have to set up your widgets again. WP kept putting them into an 'inactive sidebar'.
  • Added, as requested by a few of you, the ability to add a class and control the html around the widget without having to enter html around the shortcode has been added. See the settings page for instructions.
  • Added the ability to specify what html should be used for the title and the widget wrap, so that you can more easily either match your theme or get away from your thesmes widget styling.
  • Added ability to insert a whole widget area into the page. The default will be the "widgets for shortcode" sidebar/widget area. You can specify others. Note Specifying other widget areas may be theme dependent, ie: switch and you'll lose that page.
  • Added classes amr-widget and amr-widget-area so one can target the widgets in the page to adjust css.

Version 1.8

  • Whoops - had renamed the main file and forgot to delete it from the svn. Forcing a version number change to ensure files get cleaned up for everyone

Version 1.7

  • Change: Changed so that debugs and debug prompt will only show to a logged in administrator.

Version 1.6

  • Add: added a settings page to help people out (not really settings)
  • Fix: changed a clashing function name

Version 1.5

  • Fixed: a small bug which caused a warning if you had not saved the widgets in your shortcode sidebar

Version 1.4

  • Updated readme - made very detailed steps and added some screen shots.
  • Tested on wp 3.3.1 and fixed some notices when bad parameters entered.

Version 1.3

  • Added debug link and retested. Added readme.


  • Changed dummy shortcode sidebar so it appears after the theme sidebars to avoid taking over their widgets (this happened in numbered sidebars) PLEASE note if you have upgraded, you may appear to have "lost" your widgets due to this sidebar change. You have not - they will be in your "inactive widgets" - please drag them to the new sidebar. You may also find that you have 2 versions of the plugin, with slightly different folder names. This will allow you to go back to the previous one to check what you had there if you need to. Deactivate the old one and activate the new one. Move your widgets back in. Test then Delete the old one. In one theme it also appeared that somehow due to this change, one of the sidebar widgets "moved" down to another sidebar. I think that this may have had something to do with the fact that sidebars can be numbered or named, so please check all your sidebars before continuing. As always make sure thath you know how to restore from a backup before doing any upgrades of any kind.
  • Tested in 2.9.2, can still use either the widget name "Categories" or id=categories-6. Note widget must have been created in the dummy shortcode sidebar.


  • Allow for lowercase use of widget names for the those challenged by attention to detail!
  • Cleaned up debug mode to make it easier for people to identify which instance of a widget they are using. Add &do_widget_debug to url string.


  • Launch of the plugin

Compatible up to: 4.7 alpha
Last Updated: 7 months ago
Active Installs: 70,000+


4.5 out of 5 stars


1 of 4 support threads in the last two months have been marked resolved.

Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,3,3 100,1,1
100,1,1 100,2,2 0,1,0 100,4,4 0,1,0
100,2,2 100,1,1
100,2,2 100,1,1
80,5,4 100,2,2 100,1,1
100,2,2 75,4,3
0,1,0 100,1,1
100,2,2 100,1,1
100,1,1 100,1,1
100,1,1 100,2,2