WordPress Custom Post Types are the best way to create intuitive content types. This is done by having a clear differentiation between the different types of content, adding just the required parameters and fields to them and therefore removing cluster from the sometimes overloaded WordPress admin interface.
By default, WordPress comes with a number of standard post types for website owners to use. Each are formatted in their own way and have specific settings and options related only to that particular post type.
And, though adding new custom post types manually is possible, it requires coding knowledge that the average WordPress user simply does not posses.
Today I am going to explain to you the importance of custom post types, why you should consider implementing them on your website, and how to create them in just a couple of clicks, without writing a single line of code, using a free plugin called WCK .
What Are Custom Post Types?
Before getting into what a custom post type is, I think it is important to have a general understanding of WordPress’ standard content types. These are the post types that come bundled in the WordPress core for everyone who uses WordPress.
Default Content Types
WordPress provides users a handful of built-in content types: Post, Page, Attachment, Revision, and Navigation Menu.
Each of the content types in WordPress have their own set of parameters such as:
- User access level.
- Ability to receive comments.
- Meta data.
- Templates used for display.
- Display rules.
These properties define how each content type will display to website visitors, if at all, and how they will function either in the back or front end of your website.
The content types you are probably most familiar with are Pages and Posts. You can easily access each of these content types via your WordPress dashboard.
Pages are generally for constant content that rarely changes, such as About Me and Contact pages. Posts are usually left for dynamic content such as blog posts.
Custom Post Types
Custom post types are post types created specifically by you that are in addition to the built-in post types WordPress comes packaged with.
They appear in your WordPress database with different values than the standard post types do and will function according to how you define them.
Why Use Custom Post Types?
There are many reasons why you might consider using a custom post type on your website. One of the main reasons to utilize custom post types is to keep a specific type of content you want to share with your readers separate from the static pages and regular posts you publish.
By creating a custom post type your readers will be able to distinguish between the different content types on your website easily and navigate to their preferred content quickly.
Also, by personalizing the “Add New” post type interface, you’ll make it super easy for people who manage the site to add new content of the defined types. One of the easiest way to do this is by adding custom fields and tying them to a particular post type.
Here are some ideas of different content types you may want to add to your website:
- Products for an eCommerce website.
- Testimonials for a web portfolio.
- Listings for a real estate agent website.
- Reviews for a publishing website.
- Events for an event website.
- Vehicle Listings for an automotive website.
As you can see these content types would have a very different type of message for your readers than what is typically provided in a Page or Post. Also, they will probably be displayed in the front-end in a different manner. By defining a custom post type with only the required fields and parameters you’ll simplify the front-end display and create more intuitive content adding interfaces.
Also, some page builders (like Elementor) will allow you to visually edit and style them.
This is why the idea of custom post types is so appealing to complex websites offering multiple types of information to site visitors.
Create a Custom Post Type Using WordPress Creation Kit (WCK)
Today I am going to share with a great free plugin that can be used to create custom post types on your WordPress website rather than doing it manually, which can be difficult and requires coding experience.
WCK consists of three helpful tools for creating custom post types, custom taxonomies, and custom fields and metaboxes for your posts and pages:
- WCK Custom Post Type Creator. Create custom post types by setting the appropriate register_post_type() function.
- WCK Taxonomy Creator. Create and edit custom taxonomies to correlate with your custom post types.
- WCK Custom Fields Creator. Create custom metaboxes with custom fields for posts, pages, and custom post types.
With WCK, website owners are able to easily create new custom post types for their websites directly from the WordPress admin section by defining only three required parameters.
This basic user interface for creating and defining custom post types is easy to manage, it all requires just a couple of clicks.
Step 1: Installation and Activation
To install WCK onto your WordPress website simply navigate to Plugins > Add New in your WordPress dashboard. Then search for “WCK”.
Next select Install Now and activate the plugin.
Once installed, you will notice a new WordPress dashboard menu item labeled WCK has been created.
Here you will find menu items labeled:
- Start and Settings
- Post Type Creator
- Taxonomy Creator
- Custom Fields Creator
- Front End Posting
- Swift Templates
For the purposes of today’s post we will focus on the Post Type Creator menu item for creating custom post types. If you wish to extend your CPTs by adding custom fields, look into Custom Fields Creator as well.
Step 2: Create a Custom Post Type
To create a new custom post type for your website navigate to WCK > Post Type Creator in your WordPress dashboard.
This will bring you to a screen where your creation can begin.
There are several areas for you to fill in regarding your custom post type:
- Post type. Label the type of custom post type you are creating.
- Description. Provide a short description regarding your new custom post type.
- Singular Label. Designate a singular label for your custom post type.
- Plural Label. Designate a plural label for your custom post type.
- Hierarchical. This decides whether the custom post type you are creating will allow a Parent to be specified.
- Has Archive. This enables post type archives.
- Supports. Click on the selections you would like your custom post type to support: title, editor, author, thumbnail, and more.
There are also several advanced options you can configure if you so choose, however WCK will work just fine regardless.
After you have filled in the appropriate information select Add Entry.
You will notice after selecting Add Entry that near the bottom of the screen your new custom post type will be displayed with the information you plugged in.
You also have the option to edit or delete this entry if you so choose.
Step 3: Use Your New Custom Post Type
Now that you have easily created a new custom post type for your WordPress website, it is time to make use of it.
Check out your WordPress dashboard menu items and look for your new custom post type. For today’s explanation I created a custom post type labeled Reviews.
When I look to my WordPress dashboard I now see this:
Notice that in addition to my built-in content types, Pages and Posts, I now have a new custom post type in my WordPress dashboard labeled Reviews. From there I can view all reviews I have created or create a new Review.
Although the focus of this post today is on creating custom post types, it is worth mentioning that WCK also comes with a handy tool for creating front end templates with zero programming knowledge or experience in the Pro version of the plugin.
Template files control how your website will display to your visitors. They draw information from your WordPress MySQL database and generate the HTML code needed for delivery to your site visitor’s browser. This is how your readers are able to see your site’s content as a whole.
Using the Swift Templates tool located in the WCK WordPress dashboard menu, you can do things such as create listings of all of your custom post types and create single page templates that consider previously made custom post types, all without the writing any PHP or messing with any of your website’s template files.
Creating custom post types for your WordPress website is a great way to add new content types for your readers to enjoy.
Also, if you have multiple authors that help you with the content creation, you can quickly create custom, yet familiar, data entry interfaces. Authors will be able to fill out the custom fields you define, of the types you define. Then easily create templates to render the items on the front end in a format you completely control.
Have you considered adding custom post types to your website? Please let us know in the comment section below.
Try WCK on a easy to use Demo Site
Subscribe to get early access
to new plugins, discounts and brief updates about what's new with Cozmoslabs!