Custom Post Types (CPT) and Custom Taxonomies are great features that enable WordPress to be a great Content Management System (CMS) from just a blogging platform. I often use CPT and Custom Taxonomies in many projects to manage all posts.
If you’re new to CPT and Custom Taxonomies, be sure to read these two articles from the WordPress Codex:
When creating CPT or Custom Taxonomies, I realive I’ve been using the same code many times. Therefore, it don’t take too much time to create one. If you’re still new to these two great features of WordPress, I recommend using Custom Post Types and Custom Taxonomies Code Generator.
In few minutes and after few clicks, you’ll get the code to be used to create CPT and Custom Taxonomies. What you need to do is just to paste the code in your functions.php file or even better in your functioanlity plugin.
Here’s an example of the code generated from the tool:
Although this code generator tool is great, it lacks in flexibility. Currently it only has very few options. However, it should give you a good starting point. From the code generated, you just need to do some minor changes to suit your need.
If you haven’t used CPT or Custom Taxonomies before, be sure to learn it. Once you know how to use them, I’m pretty sure that you will never look back.
Update: I’ve updated the example code generated above the latest code generated by the tool.