BACK TO DIRECTORY



Widgets are normally displayed as part of a sidebar using the dynamic_sidebar()
function. There is the_widget function for static widgets, but there is no
equivalent for specific widgets configured in the Appearance > Widgets area.
The Widget Instance plugin allows WordPress users of all abilities to display
these widgets outside of the sidebars they have been assigned to.
Features
- A wysiwyg editor button for selecting available widgets,
- A shortcode [widget_instance id=”[widget_id]”],
- A theme action do_action(‘widget_instance’, [widget_id]) and finally
- Utility functions for developers get_widget_instance and widget_instance
Usage
- [widget_instance id=”[widget_id]”]
- do_action(‘widget_instance’, ‘[widget_id]’);
- the_widget_instance(‘[widget_id]’);
- get_the_widget_instance(‘[widget_id]’);
Screenshots

The Widget Instance editor button

The editor dialog for inserting a specific widget instance
Plugin Details
Active Installs
500Total Downloads
13,878Version
0.9.4Requires WP
2.9.1Requires PHP
—Tested Up To
4.9.31Added
2012-06-11Last Updated
2018-07-11 11:52am GMTRatings
5
5
4
0
3
1
2
0
1
3