Widget Logic lets you control on which pages widgets appear using WP's conditional tags. It also adds a 'widget_content' filter.
Does just what it says it does.
You need to know a smidgen of php templating code to set up the conditions but there are useful examples under Other Notes for those that don't.
This plugin makes it so easy to have widgets where you want them and not where you don't want them, so that each type of page gets the widgets that are compatible with it. Thanks so much!
nice plugin. thanks
Besides tying widgets to specific pages, I have been using the random function to make widgets rotate at random. I don't see it under the "Other Notes" tab and I forget where I found the idea, so I'll repeat it here.
On the first widget you want to randomly rotate, put code like this:
global $my_random_widget; $my_random_widget=rand(1,4); return ($my_random_widget==1);
My example above assumes I will have a total of 4 widgets to rotate. If you have more or less, change "4" to your total.
Then on each subsequent widget, just put in:
and change "2" on the third one you do to "3", etc.
This plugin has opened plenty of new possibilities for me, including a more relevant sidebar in magazines, removing widgets for mobile (not just hiding them).
Love your plugin, used it for multiple years.
Would you be willing to create a plugin called Menu Logic that works just like the Widget Logic?.
Big thanks for developer!
This plugin has come to my rescue on numerous occasions and it has done things in WP that I did not think was possible. Thank you for making this plugin! :)
The plugin has been great for many uses for our sites. Using the translation plugin to hide for specific languages to the basics for different sidebars configurations.
Thanks for the great plugin.
You must log in to submit a review. You can also log in or register using the form near the top of this page.