WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Widget Logic

Widget Logic lets you control on which pages widgets appear using WP's conditional tags. It also adds a 'widget_content' filter.

0.57

Small fixes to satisfy some define('WP_DEBUG', true) errors

0.56

Small fix to the original WP3.5 fix in 0.54 that had the side effect of failing to save logic text on newly added widgets.

0.55

Restored a striplashes that vanished in 0.54 causing much grief.

Translation: Spanish by Eduardo Larequi http://wordpress.org/support/profile/elarequi

0.54

Removed a WP 3.1+ function call, hopefully making it 2.8 compatible again.

A little 'trim' of WL code to stop "syntax error, unexpected ')'" errors, which could occur if your WL was just a single space. Thanks to https://twitter.com/chrisjean for pointing this out.

Translation support! Thanks to Foe Services Labs http://wordpress.org/support/profile/cfoellmann for the work on this and the German translation files.

Added a 'widget_logic_eval_override' filter. This allows advanced users to bypass EVAL with a function of their own.

0.53

Accidentally released code with a terrible bug in it :-(

0.52

Two new features: optional delayed loading of logic (see Configuration under Installation), and the ability to save out and reload all your site's widget logic into a config file

0.51

One important bug fix (fairly major and fairly stupid of me too)

0.50

For the first time since this started on WP 2.3, I've rewritten how the core widget logic function works, so there may be 'bumps ahead'.

It now uses the 'sidebars_widgets' filter (as it should have done when that was introduced in WP2.8 by the look of it). The upshot is that is_active_sidebar should behave properly.

Widget callbacks only get intercepted if the 'widget_content' filter is activated, and much more briefly. (A widget's 'callback' is rewired within the 'dynamic_sidebar' function just before the widget is called, by the 'dynamic_sidebar_param' filter, and is restored when the callback function is invoked.)

0.48

Kill some poor coding practices that throws debug notices - thanks to John James Jacoby.

0.47

FINALLY tracked down the elusive 'wp_reset_query' option resetting bug.

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. Thanks to Kjetil Flekkoy for reporting and helping to diagnose errors in this version

0.31

Last WP 2.3 only version

Requires: 2.8 or higher
Compatible up to: 3.8.3
Last Updated: 2014-2-1
Downloads: 763,625

Ratings

4 stars
4.3 out of 5 stars

Support

5 of 25 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1 100,2,2
100,1,1 100,6,6
100,1,1 100,9,9
100,8,8
100,1,1 0,1,0 0,1,0 78,18,14 100,4,4
86,14,12 100,36,36 100,1,1 0,1,0
87,31,27 0,1,0
96,49,47
100,1,1
100,7,7
100,11,11 0,1,0
100,3,3 100,1,1 0,1,0
95,37,35 100,7,7
100,8,8
100,12,12
100,18,18
100,2,2
100,6,6
95,58,55 100,1,1 100,1,1
100,7,7 0,1,0 91,11,10 100,1,1
96,53,51 100,6,6
100,4,4 97,29,28 0,1,0
100,6,6
89,38,34 0,6,0
93,28,26 100,1,1 100,1,1
60,5,3 20,5,1 100,5,5 69,13,9
92,36,33
100,3,3
83,6,5
100,7,7 100,1,1
100,6,6 67,3,2
70,10,7
87,15,13
100,1,1
100,1,1