Widget Logic
WordPress Plugin: Widget Logic
by John WiggerIn creating my website, http://www.zombieroomie.com/, I would occasionally want various widgets to only be placed on specific pages and not others… I looked around and found the plugin to do just that: Widget Logic.
It uses the conditional tags that WordPress has setup to decide whether or not a specific widget should be visable. Say you have a really long home page and you want to have multiple ad boxes down one side… add additional text widgets and place in the add code but now at the bottom of the widget box there is a line for Widget Logic that you can add in the conditional tag: is_home() and blam-o you’ve got an ad box that only appears on your homepage.
You can do this for any widget on any page of your site. All you need to do is find the proper conditional tag for the widget. View source is handy to find page ids if you want to place widgets on specific created pages.
A few examples:
Having widgets on a 404 page: is_404()
A page with comments open: comments_open()
A created page with the page id 42: is_page(’42′)
Have fun strategically placing your widgets!
-John
The plugin creator has an instructional video here:
Here is the WordPress codex listing for conditional tags:
http://codex.wordpress.org/Conditional_Tags
