Huge Savings! Enjoy 5 free customization hours!

Claim $100

in custom development with your purchase.
T&C apply.

How to Create and Import Custom Post Types in WordPress

In this blog post, we will explore the process of creating and importing custom post types in WordPress. Whether you are a seasoned WordPress developer or just starting, this guide will provide you with a step-by-step tutorial on how to create and import custom post types to your WordPress website. We will cover the basics of custom post types, including what they are, why you might need them, and how to create them using plugins. Also, we will discuss how to import custom post types from other sources, such as a CSV file. By the end of this tutorial, you will have a clear understanding of how to create and import custom post types in WordPress, and you will be able to take your website to the next level by offering unique content types to your users.
Create and Import Custom Post Types in WordPress

What is Custom Post Type in WordPress?

Let’s begin with understanding what a custom post is. In WordPress, custom post types are content types that you can create and customize to your specific needs. It can be created using custom code or a third-party add-on. In this article, we will see how to create custom posts using third-party plugins. By default, WordPress comes with five post types: Posts, Pages, Attachments, Revisions, and Menus. Custom post types allow you to add additional content types beyond defaults.

Why do we need Custom Post Types?

If you are planning to build a Real Estate website, the default Post/Page won’t be sufficient because we want a Post Type to have a Product Image, Custom Fields related to the Post we are building here are some sample fields we need – Number of bedrooms, bathrooms, Pools and Minimum Price, and Type of Property either an apartment or Building or Bangalow, etc., so definitely we need a custom post to achieve our needs.

Most Popular Third-party Plugin for Custom Post Types

There are several third-party plugins available to create custom Posts but here I’m listing the most popular ones,

  • Toolset
  • JetEngine
  • PODS
  • Metabox

As a whole, these are the most popular plugins. Each has several features and depending on your specific needs and preferences, you can select any for your website.

In this article let us see how to create Custom Post using the above addon and how to import it using the Ultimate CSV Importer Plugin.

How to create Custom Post Types using Toolset?

Toolset is a powerful plugin that allows you to create Custom Posts, Custom Fields, and Taxonomies without coding knowledge in simple steps. Toolset also includes other features, such as views, forms, and templates. These features enable you to create highly customized WordPress websites and applications.

  • Install and activate the Toolset Types plugin in your WordPress instance.
  • Go to the Toolset -> Post Types in your WordPress dashboard.
    visit post types in toolset 1
  • Click on the Add New button to create a new custom post.
    add new post types 1
  • In Post Type Name enter the Custom Post name and in the description field, enter the short description of the post. Under “Options,” select the settings you want for your custom post type. This includes the post-type label, menu icon, and capabilities. And fill in all the necessary fields and click Save Post
  • Once you have created a custom post, your newly created custom post will appear in your WordPress instance.
  • Add new custom fields to your custom post in two ways. By clicking Dashboard under the Toolset menu, you will see a newly created custom post. Then click Add Custom Fields, and Add Custom Taxonomy, to create custom fields and taxonomies for the custom post. You can also click on Custom Fields under the Toolset menu to create custom fields and Taxonomies to create custom Taxonomy.

add custom fields and taxonomy toolset types 1

custom post with fields and taxonomies 1

  • Now you will be able to see Custom Post with fields and taxonomies in your WordPress instance.

How to create Custom Post Types using PODS?

PODS is a popular plugin that allows you to create custom Posts, Custom Fields, and Custom Taxonomies. Overall, PODS is a powerful plugin that offers a lot of flexibility for customizing WordPress sites.

We will see how to create Custom Post,

  • Install and activate the PODS plugin in your WordPress Instance.
  • In your WordPress dashboard, Click PODS Admin -> Add New -> Create New.
  • Select Custom Post Type in the dropdown menu to create Custom Post, Custom Taxonomy to create a custom category and tag.
    pods add new custom post type 1
  • Provide the CPT name in the Label field and click Save Pod. A new CPT will be created, and it will be displayed in your WordPress dashboard.
  • To create custom fields, click on Edit Pods in the WordPress dashboard. Select your Custom Post (to add custom fields) -> Fields -> Add the field group name and fields for the post in Save Pods.

That’s it! With PODS, you can easily create custom post types and custom fields for your WordPress site without writing any code.

How do I create custom post types using MetaBox?

Metabox is a powerful and flexible plugin that lets you easily create custom posts, custom fields, and custom taxonomies for your WordPress posts, pages, and custom post types. Whether you’re a developer building custom themes or plugins or a content creator looking to add more information to your posts, MetaBox is worth checking out.

  • Install and activate the MetaBox to create custom fields and MB Custom Post Types and Custom Taxonomies in your WordPress instance.
  • Once the plugin is activated, you can see the new MetaBox menu in your WordPress dashboard.
  • In your WordPress dashboard, go to MetaBox > Custom Post Types and click the “Add New” button to create a new custom post type.
    metabox post types 1
  • Fill in all required fields, such as name and slug, for your custom post. You can also select the post type’s capabilities, menu icon, and taxonomies and click Publish, and now your custom post will be created.
  • Under MetaBox -> Custom Fields, you can add custom fields to your custom post type or existing post. You can choose from various field types such as text, textarea, select, checkbox, and more. Fill in all necessary details, like field name, field location, etc., and click Publish to see your custom fields displayed in the desired location.

That’s it! You have now created a custom post type and custom fields using the MetaBox plugin’s user interface without writing a single line of code.

How do I create custom post types using JetEngine?

JetEngine is a powerful plugin that allows you to create custom post types, custom fields, and custom taxonomies without any coding. For storing additional information in your post, you can create custom fields using the plugin. Now, we will walk you through the process of creating custom post types and fields with JetEngine.

  • Install and activate the JetEngine plugin in your instance.
  • Once it is activated, the JetEngine menu will be displayed in your WordPress dashboard.
  • Click JetEngine ->Post Type -> Add New.
    jetengine post types 1
  • Add your post name and slug, and fill in all necessary details. Customise your custom post by adding custom fields and taxonomies by clicking the Add Meta Field button under Meta Fields. Choose the field type you want to add, such as “Text”, “Number”, “Checkbox”, or “Image”. Fill out the field settings, such as the field label, meta key, and default value.
  • And click “Add Post Type” to create a custom post with metadata.

Ultimate CSV Importer: To Import Custom Post Types

It’s always nice to be on trend, isn’t it? Not only for lifestyle but also for business. The Ultimate CSV Importer always keeps up with the latest market developments. Interesting, right? Then try our demo now. So let’s see how to import data into a custom post using the plugin.

This involves a few steps,

  • Import File Preparation,
  • Upload File
  • Field Mapping
  • Media Handling Section
  • Import Configuration Section

File Preparation

Ultimate CSV Importer will import both CSV and XML file formats. Ensure your CSV file is formatted correctly, with each column representing a different field in your custom post type. Also, we have provided a sample CSV or XML for your reference. If you are unclear, you can look for clarification.

Upload File

Install and activate WP Ultimate CSV Importer in your WordPress instance. Click the Ultimate CSV Importer plugin, navigate to the Import tab, upload your CSV or XML, and select the post type you want to import in the drop-down menu. Select New Items to import new data or Existing Items to update the old data.

import file upload page csv importer 1

Field Mapping

Field mapping in the Ultimate CSV Importer plugin allows you to map the columns in your CSV file to specific fields in your WordPress database, such as post title, post content, post meta fields, custom fields, and taxonomy terms. Field mapping is essential because it tells the plugin where to place the data from each column in your CSV file. Once it is done, you can save the mapping as a template so you can use the same mapping in the future.

Media Handling Section

Download external images to your media. You can decide whether the image (inline image, featured image, or gallery image) imported with your post should be in the Media Library or not in this section.

Image Handling: Ultimate CSV Importer will handle your images perfectly by not allowing duplicate images inside the media library. If the images are already present inside the media and you want to keep them, you can do it or delete the old ones by overwriting the existing images or always creating fresh ones during the import process. Select anyone based on your needs.

Post Content Image Option: Enable to download the post content image to the Media Library

Image Sizes: The image can be imported in different sizes, such as thumbnails, medium, medium large, and large. If you need a custom size, you can do it by specifying the image width and height.

Media SEO and Advanced Options: You can import images along with the SEO fields like image name, description, ALT text, and caption. Map the desired CSV header to the fields. And click Continue to proceed with the import process.

Import Configuration Section

In this section, you can take a safe backup before importing. Also, you can notify your visitors that the site is in maintenance mode. Then kick off the duplicates while importing the data based on title or name. Schedule your import at your own time in this section. Once it is done, click Import to import all your data into the WordPress instance.

How do I export custom post types using the Ultimate CSV Importer?

Click on Ultimate CSV Importer, navigate to the Export Tab, and click Custom Posts. Now the created custom post will be listed in the dropdown; select the desired post and click Continue.

Give the name of the file to be exported and download the file in the format you need, like CSV, XLS, or XML/JSON. And the advanced filters allow you to export the data you need. (Refer to the Ultimate Exporter documentation for more details.)

Update your data using the Ultimate CSV Importer.

Both import and update are the same process, and they only differ in two steps. In the first step, select Existing Items, upload your CSV, map all the necessary fields, and click Continue.

update data using csv importer 2

And in the final step, select Update based on Field to update the record based on the title, slug, or ID.