Create sidebars (widget areas) on-the-fly and selectively choose the sidebar to use for a given page. This plugin requires WordPress 3 or greater.
Author: | Daniel Hong (profile at wordpress.org) |
WordPress version required: | 3.0 |
WordPress version tested: | 3.2.1 |
Plugin version: | 0.6.6 |
Added to WordPress repository: | 10-09-2011 |
Last updated: | 29-08-2011
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, %: | 0 |
Rated by: | 0 |
Plugin URI: | http://wordpress.org/extend/plugins/wp-sideba... |
Total downloads: | 4 771 |
Active installs: | 100+ |
Click to start download |
WP Sidebars allows you to generated dynamic sidebars (widget areas) on-the-fly. Quickly generate sidebars for your site. Use the sidebar selector on the page edit screen to select a sidebar for any page. Custom post types are supported.
Usage
- Create a sidebar
- Add widgets to the sidebar
- In your templates, use
ai_dynamic_sidebar
in place ofdynamic_sidebar
- Configure options in Settings > Sidebars
Function Reference
ai_dynamic_sidebar
takes two optional parameters:
$sidebar_id
. Provide an ID to a specific sidebar. The default is NULL$location
. Provide a sidebar location, either: left, right, footer. The default is 'left'
To display sidebars dynamically based on the selection for the given page, pass NULL to $sidebar_id
.
You can also check if a given location has any sidebars. Use ai_has_sidebar
and pass in the either 'left', 'right', or 'footer'. Returns TRUE if given location has sidebars, FALSE if no sidebars.