Custom post types and taxonomies in WordPress
- Date:
- 31 Aug 2010
- Category:
Since the introduction into WordPress of Custom Post Types and Custom Taxonomies, there has been a much discussion regarding the correct uses of these two features. For a while now I’ve been searching for an opportunity to try them out. Over the next 3 days I’m going to publish 3 posts covering, Custom Post Types, Custom Taxonomies and combining the two to build a listings page. In this case one listing clients (using Custom Post Types) and projects by client (using Custom Taxonomies), but it could be anything you like.
From the outset Creativeglo.co.uk contained one page, clients, which was built in such a wrong way. It had always bugged me, and it proved to be perfect use for both Custom Post Types and Custom Taxonomies. When I set out the rebuild the page using these features I really had to hunt around to find how to write the code. One of the main reasons I blog about WordPress is it helps consolidate what I’ve just learned and, hopefully helps others looking to achieve the same thing. This series of short articles is intended to provide an overview of what I did and assumes that you’re familiar with writing functions and with the functions.php file. The first article will be along tomorrow is here.