How to Create Custom Post Types in WordPress

Check Out More At: WP Beginner

WordPress: Best WordPress Plugins | WordPress Tutorials

How to Create Custom Post Types in WordPress

Product Image Product Name / Primary Rating / Price Primary Button / Description
Best Wordpress Page Builder
  • Description:

    Elementor is an amazing website builder plugin for WordPress. Elementor makes it easy to create beautiful and high converting websites yourself without having to learn code.

Best WordPress Form Builder
  • Description:

    Gravity Forms is a WordPress plugin that creates powerful forms quickly and easily, with drag-and-drop fields, custom notifications and confirmations, and custom styling capability.

Best WordPress Theme
  • Description:

    Kadence Theme is a powerful, intuitive and flexible WordPress theme that offers an expansive set of features and customization options.

    It includes a robust page builder, beautiful design options, mobile-friendly responsiveness, powerful SEO tools and optimized performance for faster loading times.

    It's perfect for creating stunning websites without needing to write any code.

Best Wordpress Cloud Hosting
  • Description:

    Cloudways is a managed cloud hosting platform that simplifies cloud infrastructure deployment and management.

    It provides an intuitive dashboard, automated backups and optimized stack for speedy performance. It also provides 24x7 support with multiple server locations, enabling businesses to host their applications quickly and securely.

Best Budget WordPress Host
  • Description:

    Bluehost is an easy to use web hosting provider offering reliable, secure and affordable hosting solutions with 24/7 customer support.

Best Wordpress Page Builder
Primary Rating:
4.5
N/A
Description:

Elementor is an amazing website builder plugin for WordPress. Elementor makes it easy to create beautiful and high converting websites yourself without having to learn code.

Best WordPress Form Builder
Primary Rating:
3.5
N/A
Description:

Gravity Forms is a WordPress plugin that creates powerful forms quickly and easily, with drag-and-drop fields, custom notifications and confirmations, and custom styling capability.

Best WordPress Theme
Primary Rating:
3.5
N/A
Description:

Kadence Theme is a powerful, intuitive and flexible WordPress theme that offers an expansive set of features and customization options.

It includes a robust page builder, beautiful design options, mobile-friendly responsiveness, powerful SEO tools and optimized performance for faster loading times.

It's perfect for creating stunning websites without needing to write any code.

Best Wordpress Cloud Hosting
Primary Rating:
3.5
N/A
Description:

Cloudways is a managed cloud hosting platform that simplifies cloud infrastructure deployment and management.

It provides an intuitive dashboard, automated backups and optimized stack for speedy performance. It also provides 24x7 support with multiple server locations, enabling businesses to host their applications quickly and securely.

Best Budget WordPress Host
Primary Rating:
4.0
$3.95/Mo
Description:

Bluehost is an easy to use web hosting provider offering reliable, secure and affordable hosting solutions with 24/7 customer support.

Lasso Brag

If you’re like most WordPress users, you’ve probably found yourself needing to create a custom post type at some point. Maybe you’re running a blog and want to add a custom “Recipe” post type, or maybe you need to create a custom post type for a custom WooCommerce product.

Either way, creating a custom post type in WordPress is actually pretty easy. In this article, we’re going to show you how to create custom post types in WordPress step by step.

But before we dive into the tutorial, let’s first answer some common questions about custom post types.

What is a Custom Post Type?

A custom post type is a custom content type that you can use in WordPress. By default, WordPress comes with two content types: posts and pages.

A custom post type is basically any other content type that you can add to your WordPress site. For example, you can add a custom post type for products, recipes, events, books, etc.

Custom post types are different from custom fields. Custom fields are used to add additional data to a post or page, whereas custom post types are used to create entirely new content types.

Do I Need a Plugin to Create a Custom Post Type?

Yes and no.

You can technically create a custom post type without a plugin, but it’s not recommended. The reason is that custom post types are stored in the WordPress database. If you create a custom post type without a plugin, and then deactivate or delete your theme or plugin, your custom post types will be deleted from the database.

In other words, if you don’t use a plugin to create your custom post type, you’ll lose all your custom post types when you change your theme or delete your plugin.

We recommend using a plugin like Custom Post Type UI or CPTUI to create custom post types. These plugins will create a permanent record of your custom post types in the WordPress database, so you don’t have to worry about losing them.

How to Create Custom Post Types in WordPress

Now that we’ve answered some of the most common questions about custom post types, let’s move on to the tutorial.

Creating a custom post type in WordPress is actually pretty easy. First, you need to install a plugin like Custom Post Type UI or CPTUI. For the purposes of this tutorial, we’ll be using Custom Post Type UI.

Once you’ve installed and activated the plugin, click on the “CPTUI” link in your WordPress admin sidebar. On the CPTUI settings page, click on the “Add/Edit Post Types” tab.

This will bring you to the Add New Post Type screen. Here, you need to enter a slug for your custom post type. This is the URL-friendly version of the name of your custom post type. For example, if your custom post type is called “books,” you might use a slug like “book-reviews.”

Once you’ve entered a slug, scroll down and enter a plural label and singular label for your custom post type. These are the names that will be used for your custom post type in the WordPress admin area.

If you scroll down further, you’ll see a section labeled “Settings.” Here, you can choose whether your custom post type should be publicly visible or not. We recommend keeping the “public” setting turned off for most custom post types.

You can also choose whether your custom post type should have an archive page or not. An archive page is basically a list of all the items in your custom post type. For example, if you have

Similar Posts