Skip to content
Technology for businesses since 2008

Help center · WordPress

How to add a custom post type with CPT UI in WordPress

In this tutorial, we’ll show you how to add a custom post type with CPT UI in WordPress.

What is a CPT in WordPress

CPT in WordPress stands for Custom Post Type: a custom type of post used to classify the kinds of content you want to publish on your WordPress site.

What is a CPT in WordPress used for

A CPT in WordPress is used to classify content. It lets you separate content by type, so content that isn’t just the standard blog posts that come with WordPress stays apart.

Examples of CPTs in WordPress

A good example of CPTs in WordPress is a course website:

In this scenario, there are 2 types of courses: Non-Degree Courses and Graduate Courses.

To register these courses, you need a CPT in WordPress, so we create one CPT for non-degree courses and another for graduate courses.

This way, the non-degree and graduate courses are kept separate.

The example image shows some CPTs, such as: Graduate Courses; Non-Degree Courses; Testimonials.

Each CPT in WordPress can also have its own category, separate from the post categories, so you’ll need to create a taxonomy related to the CPT.

How to create a CPT in WordPress

You can create a CPT in WordPress in two ways: by using a plugin or by using custom code in the theme.

How to create a CPT using the CPT UI plugin in WordPress

What is CPT UI (Custom Post Type User Interface)

Custom Post Type UI is a WordPress plugin that lets you create custom post types and taxonomies (categories) through an easy-to-use panel, without having to type lines of code.

How to install CPT UI in WordPress

After logging in to your WordPress installation, go to the Plugins menu and click Add New.

In the plugin search bar, type CPT UI.

Click Install and then Activate.

After activating it, go to the CPT UI item in the side menu and click Add/Edit Post Types.

On this screen, you’ll find a few essential fields for your custom post type in WordPress.

Following our example, we’ll create 2 CPTs: Non-Degree Courses and Graduate Courses.

Let’s create the CPT for Non-Degree Courses first:

In the slug field (the base part of the custom post’s URL), type non_degree_courses. It can’t contain spaces or special characters, because the slug will look like this: yoursite.com/non-degree-courses/course-name

Plural and singular labels are the names that will appear in the side menu of your WordPress site.

When that’s done, click Add Post Type.

Do the same for the graduate courses

Now notice that in the side menu of your WordPress site, you’ll have 2 new options that you created.

That’s it! Now you can add posts separately and in a customized way.

To display your custom posts on your page, you’ll need a page builder plugin such as Elementor, or you can display them through custom code.

More on WordPress

See all →

Help center

Looking for something else?

See all tutorials, organized by topic.