American in Spain

Widgetize Anything

November 30, 2006

As of Wordpress 2.8.2, this plugin no longer works. I recommend switching to use the PHP Code Widget. It's exactly the same as this one, except that it requires you to use tags.

There are many Wordpress plugins that should be converted into sidebar widgets, made compatible with the Automattic Widget Plugin, but, for whatever reason, have not yet been converted. Wouldn't it be nice if there were a generic way to call other plugins from within a sidebar widget? Now there is! Introducing.... Widgetize Anything! Basically, it works just like the built-in text widgets, except that it allows you to put in PHP code into the body of the widget.



  • Create any number of Widgetize Anything widgets
  • Paste PHP code directly into the widgets in the widget admin
  • Built in optional "Title" property.



  1. Download the plugin here: widgetize-anything.tar.gz (2.3 kB)
  2. Unzip the plugin into your /wp-content/plugins directory.
  3. Activate the plugin in your WordPress admin.
  4. Choose how many Widgetize Anything widgets you want under Options --> Widgetize Anything (see screenshots)
  5. Enter the desired PHP code into the widget on the Sidebar Widgets page in your WordPress admin (see screenshots).
  6. Drag the widget onto the sidebar where you want it on the Sidebar Widgets page in your WordPress admin.


Widgetize Anything Options

The options screen

Hello World

The simplest example: Hello World

Highest Rated

Calling the WP-PostRatings plugin to display the highest-rated posts.


It's important to understand that the code that you put into your widget must be valid PHP code. You may not open or close PHP blocks with "< ?php" or "?>", nor can you place straight HTML code into the widget content. You have to echo out all the HTML code that you want to show up on your page.

Change History



Fixed a bug caused by Wordpress 2.2.1. They changed the way widgets are registered once again.



Fixed a bug caused by Wordpress 2.2. For 2.2, they incorporated the sidebar widgets plugin into the main codebase, and a few things changed.



Original version

Questions and Comments

You may leave questions and comments on this blog, or email them directly to me at erikwordpressplugins -at- gmail.