Display/output a specific widget instance using either a shortcode, function, action or wysiwyg button.
Author: | Ben Cooling (profile at wordpress.org) |
WordPress version required: | 2.9.1 |
WordPress version tested: | 4.9.14 |
Plugin version: | 0.9.4 |
Added to WordPress repository: | 11-06-2012 |
Last updated: | 11-07-2018
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 68 |
Rated by: | 9 |
Plugin URI: | http://bcooling.com.au |
Total downloads: | 12 471 |
Active installs: | 700+ |
Click to start download |
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
FAQ
ChangeLog