I wrote this plugin to provide similar functionality to the Drupal Side Content module. It makes it easy to have unique sidebar content on any page. Yes, it gives your page wings – or its own widgets, anyway.
If you see any PHP errors on activating the plugin then the most likely cause is that you are using PHP 4. This plugin requires PHP 5.
Example of use: In the side bar for this article you can see an example widget the content of which was created using this plugin.
Here’s how to use it:
- Install and activate the plugin in the normal way.
- On the settings page for Side Content, enter the names for your widgets, one per line. (These will also be the names of your custom fields). Save your changes.
- On the Design->Widgets page, you’ll now see your widgets listed and you’ll be able to position them as you like in your sidebar(s).
- Edit a page (or post) for which you want one or more sidebar content widgets. The widget entry areas will be found in a sub panel headed “Side Content Widgets”. In each area enter the HTML (including any heading) you wish to appear. The widget content will be saved along with the rest of the page or post.
- Tip: use the HTML editor for the page to create content for a field, then (in HTML mode) cut and paste it into the custom field value area.
- Note: it now works with both pages and blog posts.
- Note: as of release 0.7 the plugin includes support for the new WordPress shortcode API.
- Note: as of release 0.6 the plugin is compatible with WordPress-MU.
- Note: as of release 0.5 it has its own subpanel on the edit page.
Although the plugin does not require any theme changes to be made, it does provide a useful API function that can be used in templates to adjust page layout if required. To call it, code as follows:
// template adjustments for side content widgets
// alternatively, you can test for a particular widget by name
// template adjustments for side content widget 'mywidget'
Note that this plugin requires PHP5. Compatible with WP 2.5 through 2.8.1.