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.

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.

PLEASE NOTE The widget logic you introduce is EVAL'd directly. Anyone who has access to edit widget appearance will have the right to add any code, including malicious and possibly destructive functions. There is an optional filter 'widget_logic_eval_override' which you can use to bypass the EVAL with your own code if needed. (See Other Notes).

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

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. As of December 2011 we have raised 440 UKP. I'm going to aim to have upped that to 750 UKP by the end of 2012.

Translate

Social Translation: https://translate.foe-services.de

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

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