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:
/**
* Project Custom Taxonomy
*
* @package WordPress
* @subpackage Project_Taxonomy
* @link http://www.blazersix.com/wordpress-code-generators/
*/
/**
* Load the Project taxonomy.
*/
add_action( 'init', 'ws_project_init' );
/**
* Register Project custom taxonomy.
*
* @link http://codex.wordpress.org/Function_Reference/register_taxonomy
*/
function ws_project_init() {
register_taxonomy( 'project', array( 'project' ), array(
'hierarchical' => true,
'labels' => array(
'name' => 'Projects',
'singular_name' => 'Project',
'search_items' => 'Search Projects',
'popular_items' => 'Popular Projects',
'all_items' => 'All Projects',
'parent_item' => 'Parent Project',
'parent_item_colon' => 'Parent Project:',
'edit_item' => 'Edit Project',
'view_item' => 'View Project',
'update_item' => 'Update Project',
'add_new_item' => 'Add New Project',
'new_item_name' => 'New Project Name',
'separate_items_with_commas' => 'Separate projects with commas',
'add_or_remove_items' => 'Add or remove projects',
'choose_from_most_used' => 'Choose from most used projects',
'menu_name' => 'Projects',
),
'public' => false,
'query_var' => true,
'rewrite' => array(
'slug' => 'project',
'with_front' => true,
'hierarchical' => true
),
'show_admin_column' => true,
'show_ui' => true,
'show_in_nav_menus' => false,
'show_tagcloud' => false
) );
}
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.
[...] types – Post, Page, Attachment, Revision and Navigation Menus. Before this, I also shared a WordPress Custom Post Types Generator to build your own custom post [...]