What is Custom Post Type in WordPress?
Custom post types are content types like posts and pages. Since WordPress evolved from a simple blogging platform into a robust CMS, the term post stuck to it. However, a post type can be any kind of content.
By default, WordPress comes with these post types:
- Nav Menu
You can create your own custom post types and call them whatever you want.
For instance, if you run a movie review website, then you would probably want to create a movie reviews post type. This post type can have different custom fields and even its own custom category structure.
Other examples of post types are Portfolio, Testimonials, Products, etc.
Many popular WordPress plugins already use custom post types to store data on your WordPress website. The following are a few top plugins that use custom post types.
- WooCommerce – Adds a product custom post type to your WordPress site.
- WPForms – Creates a wpforms post type to store all your forms
- MemberPress – Adds a memberpressproduct custom post type
When do I need a custom post type?
Check out our article about when do you really need custom post types or taxonomies in WordPress.
Also take a look at WPBeginner’s Deals and Glossary sections. These are custom post types that we created to keep these sections separate from our daily blog articles. It helps us better organize our website content.
You will also notice that we are using custom taxonomies for them instead of categories or tags.
That being said, let’s take a look at how to easily create custom post types in WordPress for your own use.
Method 1. Creating a Custom Post Type – The Easy Way
The easiest way to create a custom post type in WordPress is by using a plugin. This method is recommended for beginners because it is safe and super easy.
The first thing you need to do is install and activate the Custom Post Type UI plugin. Upon activation, the plugin will add a new menu item in your WordPress admin menu called CPT UI.
Now go to CPT UI » Add New to create a new custom post type.