How to Create Custom Post Types in WordPress

by | Jun 17, 2020 | Uncategorized | 0 comments

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:

  • Post
  • Page
  • Attachment
  • Revision
  • 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.

0 Comments

Submit a Comment

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

You May Also Like…
Whose email domain should you use for system emails?

Whose email domain should you use for system emails?

Introduction Many companies run campaigns to raise user awareness around phishing and malware and while these campaigns do raise awareness, they also create user uncertainly about which emails are valid, so system emails need to be designed so users can identify which...

Better Alternatives to whitelisting for ensuring email delivery

Better Alternatives to whitelisting for ensuring email delivery

Introduction Email is used by businesses every day. Business correspondence is a core use, but email is used by applications to send surveys, notifications, data exchange, reports and alerts. Email’s universal adoption makes it a prime target for hackers looking to...