I’ll make this short and sweet. Widget Block is a plugin that allows you to create new types of widgets, called Blocks. If you’re familiar with Drupal, the plugin lets you treat widgets much like Drupal Blocks.

With this plugin, you can create widgets that only display on the pages you want, without needing to create many different widget regions.

All you do is enter a list of pages to include or exclude. You can use wildcards to match a certain series of posts or pages. The Widget Block plugin even supports PHP code. The plugin is meant to be simple, and I hope it saves users from having to create region after region. Hopefully something similar will make it into WordPress core.

Usage: Once you activate the plugin, go into Appearance > Widgets. You’ll see a new “Block” item under “Available Widgets”. Drag this item into the region of your choice. That’s it!

Examples

  • <front> will show the widget on the frontpage.
  • about will show the widget on the About page.
  • pluginblog/2009/* will show the widget on any of this site’s blog posts from 2009.
  • pluginblog/2009/07/* will show the widget on any of this site’s blog posts from July of 2009.

Widget Block