This post is a continuation of posts about WordPress plugins we’ve worked with. I just installed a plugin called the PHP Code Widget for a client today. This plugin takes the basic function of a text widget and lets you place PHP code in it. Very useful if you’re using a widgitized sidebar and need to place some PHP code in a widget. In this particular example, I needed a links widget that would display only one link category. The default WordPress links widget displays all categories and has no options. What do I do? Well, I download the PHP Code Widget and insert my PHP widget with the code to display one category only (assuming a category number 2):
<?php wp_list_bookmarks('category=2'); ?>
Beautiful!
