How to Create a WordPress Custom Post Type the Easy Way

How to Create a WordPress Custom Post Type the Easy Way

If you want to take WordPress beyond basic blog or brochure websites, learning how to create a WordPress custom post type is an important first step.

Custom post types let you store additional information outside of WordPress’ default “Post” and “Page” system.

For example, you can create a “product” custom post type for an eCommerce store or a “job” custom post type for a job listing website.

Many of your favorite plugins rely on custom post types in some way, but you can also create your own WordPress custom post type according to your needs, which is the focus of today’s post.

In this post, I’ll show you how to create a WordPress custom post type using two different methods:

  • With the Types component in the Toolset plugin – no code required.
  • Manually with your own code – it’s still pretty simple.

How to Create a WordPress Custom Post Type With Toolset Types

Toolset is a popular suite of tools for creating and working with custom content types in WordPress.

Toolset comes as a set of different components that you can use to work with custom post types in various ways, which is one of the reasons we’re using it for this tutorial.

To create a WordPress custom post type with Toolset, you just need a single component – Types. But once you’ve created your custom post type, you can consider other components like:

  • Views – display your custom content on the front-end in any way that you choose.
  • Layouts – build layouts for front-end content display.
  • Forms – create front-end submission forms for your custom post type. For example, if you create an “Event” custom post type, you can let people submit events from the front-end of your site.
  • Access – restrict access to custom content on your site, like to create a membership site.
  • Maps – display custom post type entries on a map. For example, if you have an “Apartment” custom post type, you can display each apartment on a map.

To learn more about why we like Toolset (and use it here at WPLift), you can check out our full Toolset review.

Get the Toolset Plugin

Once you install and activate the Types component from Toolset, here’s how to use it…

1. Create a New Post Type

To get started, go to Toolset → Post Types. There, you should see a list of the three default WordPress post types (posts, pages, and media attachments).

To create a custom post type, click the Add New button:

WordPress custom post type list

[…]

 



This article was written by Colin Newcomer and originally published on Learn WordPress with WPLift.

Disclosure: Some of the links in this post are "affiliate links." This means if you click on the link and purchase the product, We may receive an affiliate commission.

Leave a Comment

You have to agree to the comment policy.

Show Your ❤️ Love! Like Us
Scroll to Top