Plugin Directory

Widget Logic

Author: Alan Trewartha

This plugin gives every widget an extra control field called "Widget logic" that lets you control the pages that the widget will appear on.

The text field lets you use WP's Conditional Tags, or any general PHP code.

There is also an option to add a wordpress 'widget_content' filter -- this lets you tweak standard widgets to suit your theme without editing plugins and core code.

Version History

0.46 - Fix to work with new WP2.8 admin ajax. With bonus fixes.

0.44 - Officially works with 2.7 now. Documentation changes and minor bug fixes.

0.43 - simple bug fix (form data was being lost when 'Cancel'ing widgets)

0.42 - WP 2.5+ only now. WP's widget admin has changed so much and I was getting tied up in knots trying to make it work with them both.

0.4 - Brings WP 2.5 compatibility. I am trying to make it back compatible. If you have trouble using WL with WP 2.1--2.3 let me know the issue.

0.31 - Last WP 2.3 only version

Thanks To

Kjetil Flekkoy for reporting and helping to diagnose errors in the 0.4 version

Donations

If you like and use Widget Logic you could consider a small donation to Cancer Research UK. I have a JustGiving.com donation link above with the aim of raising 500 UKP in the next 12 months.