WordPress Widget Changer Plugin

This plugin is not compatible with WP2.7

I am officially retiring this Widget Changer plugin, which means I won’t be providing any more support or update.  If anyone wish to take over the project, feel free to contact me.

What is this plugin about?

WordPress allows you to add plenty of widgets to your sidebar; however all these widgets are static for all pages and there is no means to schedule a particular widget to appear for a specific post.

What this plugin does is to add a dynamic widget to your sidebar. You can configure it to show a particular widget for a certain post/page. For example, if your blog is about traveling and one of your post is about traveling to Italy. You may want to show the air fare to Italy on the sidebar when this post is loaded. However, your other posts may be discussing trips to France, and the Italy air fare will no longer be valid in this case. In the case of Widget Changer, you can configure the dynamic widget to show the air ticket to Italy on the Italy post and air ticket to France when the post is discussing about France.

Download WP-Widget-Changer plugin here.

Installation

1. Upload the ‘widget-changer.php‘ to the ‘/wp-content/plugins/‘ directory.

2. Activate the plugin through the ‘Plugins‘ menu in WordPress

How to use it?

For WordPress 2.5

1. Go to Settings -> Widget Changer. Set the user permission.

2. Select whether you want the widget to appear in a specific post/page or for specific category.

3. Go to Design -> Widgets. Drag the ‘Widget Changer‘ widget to the sidebar and place it at the order that you want it to appear. Note that the ‘Recent Posts’ widget must not be above the ‘Widget Changer’ widget.

4. If you have selected the widget to appear for specific posts/pages, you can see the Widget Changer input field below the text field at the Write menu. Fill in the Widget Title field and place your widget code in the text area. When you have finished editing your content, click ‘Publish‘ (or ‘Save‘ if you are editing an existing post/page). Your widget will now show for this particular post/page.

5. If you have selected the widget to appear on certain categories, you can manage and insert the category widget in the Settings -> Widget Changer page.

For WordPress 2.3.3 and below

1. Go to Options -> Widget Changer. Set the user permission.

2. Select whether you want the widget to appear in a specific post/page or for specific category. Note that the ‘Recent Posts’ widget must not be above the ‘Widget Changer’ widget.

3. In your Admin menu, go to Presentation -> Widgets. Drag the ‘Widget Changer‘ widget to the sidebar and place it at the order that you want it to appear.

4. If you select the widget to appear for specific posts/pages, you can see the Widget Changer input field below the ‘Publish‘ button at the Write menu. Fill in the Widget Title field and place your widget code in the text area. When you have finished editing your content, click ‘Publish‘ (or ‘Save‘ if you are editing an existing post/page). Your widget will now show for this particular post/page.

5. If you have selected the widget to appear on certain categories, you can manage and insert the category widget in the Options -> Widget Changer page.

Download WP-Widget-Changer plugin here.

Current version: 1.2.4

Changelog

Version 1.2.4

  • Fixed a bug of “ads in category widget cannot be removed

Version 1.2.3

  • Updated the code to make it compatible with WP 2.5.1

Version 1.2.2

  • Fixed a minor bug that prevent the widget content from showing in the Write section.

Version 1.2.1

  • Simple code change to rectify widget input field not showing issue.

Version 1.2.0

  • Compatible withWordPress 2.5
  • Change of database structure
  • Fix categories widget entry bug
  • Fix widget not showing bug
  • Change of category widget entry point
  • Better category widget management

Version 1.1.3

  • Allow users to select if they want the widget to appear on specific posts or specific categories.
  • Added widget input field in the Manage->Categories menu
  • New database structure
  • Auto-clean up the database everytime a new widget is added.

Version 1.1.2

  • The widget input field in the ‘Write Post’ menu can now be minimized.

Version 1.1.1

  • Fixed a widget not showing bug.

Version 1.1.0

  • Added an option page for administrator to define the plugin user permission. Administrator can now define which level of users have access to the plugin in the write post/page section.
  • Fix the ‘no widget but have bullet list display’ bug. In previous version, post/page with no widget setup will have a bullet/asterisk on the sidebar. This is fixed in 1.1.0
  • Change of database structure. Post/page with no widget setup will not be inserted to the database
  • smaller text area

Version 1.2.5

  • Fixed the ‘recent posts’ bug. It should now work with recent post widget
  • WordPress 2.6 compatible

If you like this plugin, you can show your support by giving donation to aid in the development cost.

Update: I am retiring this WP plugin and will no longer provide anymore support. If you wish to take over the project, feel free to contact me.