WordPress – custom content type

Lately I had to create some custom content types for a website running on WordPress. I’ve never had the need of custom types before. Posts, pages and categories have always seemed enough for me. But as we know, clients are clients, and we have to do whatever they ask for.

Let’s  take a practical task of creating custom type called Movie, with taxonomy – actors and few categories of different genre of movies. Here is how the different plugins could handle such task.

Custom Post Type UI Version 0.7.1

With CPT UI, you can create new content types without any problem. It’s the same with creating taxonomies and applying them to the content type. You can also use categories, but those categories will be also available from Post as content type. In some case, you might want to have only categories visible in your custom created content type which are different from the default content types’ categories.

If you are testing custom taxonomies, than do it somewhere online, rather than with localhost. When I was testing with localhost, I simple didn’t have the custom taxonomies appear.

I don’t see my Movie posts in any of the categories I’ve add them to. Even if I create a new category and place few Movies in there, they don’t appear. Clicking on the category will show only regular posts, added or if there aren’t such – it will give Page Not Found error. Yet, you can see the count of posts that should be there. Reloading the permalinks page, doesn’t help. One way to go around this is to make a custom menu and use some tags, but you’d rather use a different plugin for custom types.

Simple Custom Post Types

Before you can see your first custom post type created with this plugin, you will need again to go to Settings – > Permalinks and click on Save. By doing so, you refresh the permalinks for your installation and make the new custom post types available.

Again, this plugin doesn’t support categories for your post types. Using the categories from Posts, will result in the same way as in the previous plugin – you see number of posts, but they are not listed under the specified category. Most probably, to make this work, you will need to change the loop that displays the list of post.

Simple Custom Post Types doesn’t support custom taxonomies.

No matter what, this plugin has been rated with maximum points by 3 wordpress users.

Custom Content Types version 1.0.2

This plugin hasn’t been updated for about 400 days and it is compatible until version 3.0.5 of WordPress. Yet, it works just fine creating new custom content types and adding custom taxonomies. As all the previous plugins – CCT doesn’t support categories.

Content Types

This is an old plugin by Scott Reed. It’s not updated anymore, but the author has created a new – Reed Write. The newer didn’t have so many options when I gave it a try, compared to the old. In the old you have your unique categories for your content type. Those categories can’t be seen in any other content type. Small problem might be that when you go to the page of your content type, you don’t have any posts or any information presented – again, I think you will have to touch in the code to make this work.

Reed Write says that it has its own categories, but it doesn’t (seems only Content Types has) or at least, I couldn’t see them. What’s more, when you add a post to one of the general categories you have – it still doesn’t show up. Going to the main permalink of your new custom post type lists all posts you have.

If you are good at programming you might end up combining Content Types with Reed Write. But there is an easier solution and it’s the next and last plugin I’m going to write about.

Easy Post Types
This is the best plugin I could find for solving my case. It has taxonomies, custom categories and all links and connections work perfectly. You can create a custom menu of the categories for your type. The plugin is very well documented by videos and text, but you can also learn it by clicking around, because it’s really that simple. In the documentation you will find tutorials how to create template pages for your newly CCT. This functionality, for sure will bring you one level higher even in your WordPress theming expertise.

The only problem I had was deleting a newly created category set. The only way to delete it is trough the database (you can read more about it in the WordPress forums about it).

All about Easy Post Types

Answers to questions about Easy Post Types

Update 05/12/2013: A lot of time has passed since I wrote this post. Some of the plugins mentioned have been updated, others are still at the same state. Please, make a check for yourself what would work best.

Leave a Reply

Your email address will not be published. Required fields are marked *