Creating WordPress Custom Post Types

How to Create WordPress Custom Post Types

WordPress is a powerful content management system that allows you to display various types of content on your website. However, organizing this content can sometimes be a challenge. The default options provided by WordPress are limited, and customizing them can be confusing for beginners. This is where custom post types come in handy. In this article, we will guide you on how to create custom post types in WordPress.

What are Custom Post Types?

Custom post types are a way to create new types of content in WordPress. By default, WordPress provides two main content types – posts and pages. However, with custom post types, you can create additional content types that are specific to your website’s needs. For example, if you have a recipe website, you can create a custom post type called “Recipes” to organize and display your recipes separately from regular posts.

Why Use Custom Post Types?

Using custom post types offers several benefits for your website:

1. Improved Organization: Custom post types allow you to categorize and organize your content more effectively. This makes it easier for both you and your visitors to navigate through your website.

2. Enhanced User Experience: By creating custom post types, you can provide a better user experience by presenting specific content in a structured and organized manner. This helps visitors find the information they are looking for quickly and easily.

3. Flexible Content Management: Custom post types give you more control over how your content is displayed. You can customize the fields and settings for each post type, allowing you to tailor the editing experience to match the specific needs of each content type.

How to Create Custom Post Types in WordPress

Now that we understand the benefits of using custom post types, let’s dive into the process of creating them in WordPress.

Step 1: Install and Activate a Custom Post Type Plugin

To create custom post types in WordPress, you’ll need to install and activate a plugin that provides this functionality. There are several plugins available, but one popular option is the “Custom Post Type UI” plugin. To install it, follow these steps:

1. Log in to your WordPress dashboard.

2. Navigate to “Plugins” > “Add New.”

3. Search for “Custom Post Type UI.”

4. Click “Install Now” and then “Activate.”

Step 2: Create a New Custom Post Type

Once you have activated the plugin, you can start creating your custom post type. Here’s how:

1. In your WordPress dashboard, go to “CPT UI” > “Add/Edit Post Types.”

2. Click on “Add New.”

3. Enter a name for your custom post type. This should be descriptive and relevant to the type of content you want to create.

4. Customize the settings for your custom post type. You can specify the labels, slug, menu position, and other options.

5. Click on “Add Post Type” to save your changes.

Step 3: Add Custom Fields (Optional)

If you want to add additional fields to your custom post type, such as a featured image or a custom taxonomy, you can do so using the Custom Post Type UI plugin. Here’s how:

1. In your WordPress dashboard, go to “CPT UI” > “Add/Edit Post Types.”

2. Click on the name of your custom post type.

3. Scroll down to the “Supports” section and check the boxes for the fields you want to add.

4. Click on “Update” to save your changes.

Step 4: Displaying Custom Post Types on Your Website

After creating your custom post type, you’ll want to display it on your website. To do this, you can either create a custom template or use a plugin that allows you to display custom post types.

If you prefer to create a custom template, you’ll need to have some knowledge of HTML, CSS, and PHP. You can create a new template file in your theme’s folder and use WordPress template tags to display the content.

Alternatively, you can use a plugin like “Custom Post Type UI Extended” or “Custom Post Type Maker” to display your custom post types. These plugins provide user-friendly interfaces that allow you to customize the appearance and layout of your custom post types without any coding knowledge.


Custom post types are a powerful feature in WordPress that allows you to organize and display different types of content on your website. By following the steps outlined in this guide, you can easily create custom post types and enhance the organization and user experience of your WordPress site. Whether you’re running a blog, an e-commerce store, or any other type of website, custom post types can help you present your content in a more structured and efficient way.

Stay in Touch


Related Articles