Custom Post Types can be really useful if you know how to use them. But it can be complicated if you don’t know anything about Custom Post Types. In this article, We learn everything related to Custom Post Types In WordPress.
- What is a Custom Post type in WordPress?
- How to Create Custom Post Types In WordPress?
- Best Custom Post Types Plugins for WordPress
- When to Use Custom Post Types?
1. What is a Custom Post type in WordPress?
Custom Post Types also known as CPT, are just normal posts with a different post_type value in the database. Custom posts are those posts create using custom code or plugins, In other words, Anything post type other than five default posts types (pages, posts attachments, revisions, nav menus) are known as custom post types. Custom posts types allow users and developers a new way to add new content and posts. Custom Post types also play an important role in plugin development.
2. How to Create Custom Post Types In WordPress?
The easiest way to create a Custom Post Type is using a plugin, therefore we are going to use a plugin called Custom Post Type UI (1M+ Active Installation).To Create Custom Post Types In WordPress, follow the step given below.
Install & activate the Custom Post Type UI plugin, Once you have activated it.
Step 2 :
Navigate CPT UI > Add / Edit Post Types
Step 3 :
To add a new custom post type, first, provide a Post Type Slug, Plural Label, Singular Label (located under Basic Settings). Here I’m using Genres as the slug name. You can also use “Populate additional labels based on chosen labels” to populate the fields.
Now scroll down and you should see the Additional Labels, You can change some of the fields, otherwise, leave them as they are.
Step 5 :
Again scroll down and you should see the “Settings“, Now, here you can set different attributes for your custom post type. You can change the settings according to your requirements.
Step 6 :
Now click on the “Add Post Type” to create the post type. And you’re done. Once you created the post type, you should see a new menu item like this.
Step 7 :
Now I can add posts in my genres (custom post type) from the add new link.
Note: You can also add taxonomies using Custom Post Type UI plugin.
3. Best Custom Post Types Plugins for WordPress
There are quite a few free Custom Post Type Plugins, Here is a list of some of the best Custom Post Types Plugins for WordPress.
1. Custom Post Type UI
3. Custom Post Types and Custom Fields creator – WCK
4. MB Custom Post Types & Custom Taxonomies
5. Custom Post Type Maker
Also Read : 5 Best Security Plugins For WordPress
With 1+ million active installations, Custom Post Type UI is the most popular Custom Post Types Plugin. It provides an easy interface to create custom post types and taxonomies for your WP website. It also comes with a variety of post-editing features. There are some downsides to this plugin such as –
- It required some knowledge of PHP.
- It only lets you create post types and you have to add them yourself.
- It doesn’t offer any functionality for adding custom fields.
Pods plugin is also one of the Best Custom Post Types Plugins for WordPress. Pods allow you to manage custom content from one place. It comes with an interactive user interface and offers tons of features. It lets you create Custom Taxonomies, Custom Post Types, and Custom Settings page. the main drawback is that since there are many features users might get confused.
WCK is another great Custom post types plugin. WCK allows you to create and maintain custom posts types, custom fields, Custom Taxonomies, custom fields, and meta boxes for posts, pages, and even CPTs. You can many types of custom fields such as text, number,time-picker, phone, currency select, radio, upload, etc.
MB is yet another custom post-type plugin. With its easy-to-use interface, You can easily create custom post types and Custom Taxonomies without writing custom PHP code. It is quite lightweight and robust. It also lets you copy the generated PHP code easily. It supports most arguments (register_post_type(),register_taxonomy()) for creating custom post types and taxonomies. To get the most out of this plugin, you need the Meta Box plugin.
Custom Post Type Maker is a less known custom post type plugin. Just like other plugins, It also allows you to create custom Taxonomies & Post types. It is fully compatible with WordPress API. You can give it a try.
Also Read :5 Best Free WordPress Plugins for Ecommerce
4. When to Use Custom Post Types
The answer totally depends on your requirement and the type of website you’re running.
For Example: If you run a movies site, you might want to add a custom post type for genres. Besides You can use custom post types if you want to. Or you can just add a custom post type for your convenience.
While you can create a custom post type manually, It will be a tedious process if you don’t know programming or PHP language. I would highly suggest you use a plugin from the list.