Using Your Custom Taxonomy

Now that you've created your custom taxonomy you need to know how to use it on your web site. As always, WordPress features some very easy-to-use functions for working with your custom taxonomy. The following shows how you can display a tag cloud showing your custom taxonomy terms lt php wp_tag_cloud array 'taxonomy' gt 'ingredients', 'number' gt 5 gt The wp_tag_cloud function can accept a lot of different arguments, but in this example you're only using two taxonomy and number. First, you set...

Uninstall Your Plugin

A nice feature to include with your plugin is an uninstall feature. WordPress features two ways to register the uninstaller for your plugin the uninstall.php method and the uninstall hook. Both methods are executed when a deactivated plugin is deleted in WordPress. The first method you'll look at is the uninstall.php uninstaller method. This is the preferred method for uninstalling a plugin. The first step to using this method is to create an uninstall.php file. This file must exist in the root...

About The Technical Editor

MIKE LITTLE is the co-founding developer of the WordPress project. He started WordPress in 2003 with Matt Mullenweg now of Automattic Inc. and has been developing with and using it ever since. He now runs zedl. com, his web development and consultancy company, which specializes in WordPress. He recently worked on a number of government WordPress sites, most notably a Law Commission consultation site, and now develops and supports a site for a large Cabinet Office client. He is a published...