Use Custom Post Types UI plugin to Manage Your WordPress Custom Post Type

written by aext on August 8, 2010 in WordPress and WOW and Quick Tips with 12 comments

Custom Post Types is the most wanted feature by WordPress developers. WordPress Custom Post Types allows us easy to create and handling WordPress content sorting. However, the first time setting up and Custom Post Types customization is quite complex for someone who are not familiar with this feature. I admit that I cannot memorize the code each time I start developing a WordPress project and, off course, I always mess it up. When I scanned and did some researches if there is any WordPress plugin which can help us to control this feature, I found the plugin called Custom Post Types UI. Using Custom Post Types UI plugin is a easiest way to create custom post types and taxonomies in WordPress.

If you haven’t heard about this one, you can check it out or download it here. Right in the front of the plugin page, you can see a video which demonstrates how the Custom Post Types UI(CPTUI) works.

After installing and activating the plugin, you can access the plugin setting page in the left side Admin menu Dashboard.

CPTUI Sidebar Menu

In the “Create New” menu, you will have 2 option panels: one fore creating new Custom Post Type and one for creating new Custom Taxonomy.

Custom Post Type

Creat new Custom Post Type

The only field you need to fill out is the Post Type Name filed. The other fields will be automatically created by default options. In this case, your new Post Type will be created with the name “portfolios” with the slug is “portfolios” as the image below:

You can also choose another slug name if you don’t want this default slug as post type name (choose View Advanced Options). Furthermore, in this Advanced Options panel, CPT UI allows you to enable/disable some options: Trackbacks, Revisions … Awesome, because I don’t want to enable Revisions for portfolio post type.

And with “View Advanced Label Options”, you can specific each label for your custom post type. If you don’t fill out those options, the plugin will automatically create labels based off of your custom post type name.

Custom Taxonomy

Like Custom Post Type options, the only filed you need to define is the taxonomy name and the other filed will be automatically created depends on the taxonomy name.

When creating new taxonomy, you can assign it to your previous custom post type or any default post type like WordPress Posts, Pages. In this case, I will create new custom taxonomy named “Project Type” and attach it to “Portfolio” post type which I created recently.

In the page of creating new portfolio, I can see the new taxonomy now:

New Portfolio with custom taxonomy

Quite easy and fast, right? We can finalize it up by adding the theme template for the custom post type. As we already knew, to make a theme template for a custom post type, we simply name the template single-{post-type-slug}.php and add it to our theme folder. In this case, this would be single-portfolios.php.

That’s all! Instead of messing with code each time you create new post type project, you can use this plugin to handle this feature. You will 100% work on user interface. Highly recommended for web designers and someone who are new to WordPress 3.