Home » Web Tutorials » WordPress » How to Convert Custom Post Types to Posts in WordPress?

How to Convert Custom Post Types to Posts in WordPress?

By default, WordPress allows users to create two visible post types – post and page. You can create posts and pages from the site’s administrator panel by navigating to “Posts > Add Post” and “Pages > Add Page” section respectively. In addition, you have invisible post types like attachments, revisions and autosaves. However, only having posts and pages is not sufficient for many site owners and here comes the use of custom post types. If you have created custom post types and wanted to convert them into a standard posts, here is how you can do that.

Note: Although this article explains how to convert custom post types to posts, you can follow the same steps to convert between any two post types, either for a single item or in bulk. For example, you can convert a Page to a Post and vice versa.

WordPress Custom Post Types

Most of the commercial themes and plugins allow users to create custom post type content. This is useful to have a special content separately without mixing with the blog post feed. Here are some of the examples of custom post type users commonly using on their site.

  • FAQ – frequently asked questions
  • Team members
  • Knowledge base and Documentation
  • Portfolio and Gallery
  • Glossary
  • Reviews and Coupons
  • Products and Downloads

Generally, you can create all these content types using standard post setup. However, many commercial themes offer custom post types with unique design in order not to mix with standard post’s design. Below is an example of custom post types showing in the admin menu for Manual knowledge base theme.

Custom Post Types
Custom Post Types

Converting Custom Post Type to Post

There are many situations you need to convert custom post type content to standard post or page.

  • Switching theme – your old theme has custom post types that your new theme does not support. In this case, all custom content will show 404 page not found error when you switch to a new theme.
  • Removing plugins – some custom post type plugins like glossary and reviews can add bloat your site easily and increase the page loading time. You may need to delete the plugin in order to improve the page loading speed.  
  • Removing clutter – custom posts may add lot of menu items that you do not like and want to make your admin interface simple.
  • Time saving – maintaining multiple custom post types consume lot of your time and you want to manage a simple workflow with standard posts.

How to Convert Custom Post Types to Posts?

Unfortunately, there is no complete solution available for converting custom post types to posts including your custom categories and custom tags. Therefore, you have to follow multiple steps to change the setup.

1. Bulk Converting Custom Post Types

The first step in the process is converting your custom content to standard posts.

  • Go to your site’s admin panel and navigate to “Plugins > Add New” section. Type “post type switcher” in the search box to find Post Type Switcher plugin.
  • Click on “Install Now” and then “Activate” to install the plugin on your site.
Install Post Type Switcher Plugin
Install Post Type Switcher Plugin
  • This plugin will add a box in the index pages to provide an option for conversion. Now, go to your custom post type index page in admin panel.
  • Select the check box against the custom posts you want to convert and click on the “Bulk actions” dropdown.
  • Choose “Bulk edit” option and then click “Apply” button.
Bulk Edit Custom Post Type
Bulk Edit Custom Post Type
  • You will see an additional option “Post Type” and click on that dropdown.
  • Choose “Post” and click “Update” button.
Change Post Type
Change Post Type

This will convert the selected custom post type content to standard posts. You can view the converted posts by navigating to “Posts > All Posts” section.

Converted Posts without Category and Tag
Converted Posts without Category and Tag

2. Convert Custom Categories

As you can see, the plugin did not assign any categories to the converted posts. When you view the post in browser, WordPress will assign the default category to all converted posts.

Assigned to Default Category
Assigned to Default Category

The next step is to create the same category setup for your custom and standard posts. This is a manual step that you need to manually create your custom categories as standard post categories under “Posts > Categories” section.

Remember, this step is not required if your custom post type uses the same WordPress categories. Plugins like Custom Post Type UI offers this function of using WordPress categories for custom post types. However, commercial themes and many other plugins create custom posts independently of the standard WordPress posts.

After creating categories, go to “Posts > All Posts” section and select the converted posts. Select “Edit” option from “Bulk actions” and click “Apply” button. Here, you can assign the category in bulk for all converted posts, click on “Update” button to apply the selected category to all posts.

Assign Bulk Category
Assign Bulk Category

3. Convert Custom Tags

Similar to converting your custom categories, make sure to convert all your custom tags into standard WordPress tags under “Posts > Tags” section. After this, you can bulk assign categories similar to bulk assigning category as explained above.

4. Setup 301 Redirect

This is a final and important step in completing the process. Since all your custom posts are deleted, you need to setup a redirect to new posts. This will help search engines and users to access the new posts when they try to access your custom post content. We recommend not to change the slug so that you can use regex redirection for custom posts, categories and tags easily.

The good part is that plugins like Redirection can help you to setup automatic redirects when you convert post types. Before start converting your custom post types to posts, first install and activate the Redirection plugin on your site.

Install Redirection Plugin
Install Redirection Plugin

You can enable URL monitoring when setting up the plugin using the setup wizard. If you did not setup or want to confirm the setup, go to “Tools > Redirection > Options” and make sure to enable URL monitoring for posts. Since, you are deleting custom post types there is no need to select them for monitoring.

Monitor URL Changes
Monitor URL Changes

If you are not using Redirection plugin, or already converted all custom post types to posts then use following regex for redirection. The below example is to redirect all knowledgebase custom post types to standard posts. You can replace the knowledgebase with your custom post type name.

Regex Redirection
Regex Redirection

At any case, you need to setup redirects for custom categories and tags manually and you can use regex for this purpose as well.

Regex Redirection for Categories
Regex Redirection for Categories

Converting a Single Custom Post

The Post Type Switcher plugin also allows you to convert individual custom post type to post. For this, you can edit the custom post type and click on the post type link on the document panel sidebar in Gutenberg editor. select the post type you want to convert and publish your post.

Convert Post Type in Gutenberg Editor
Convert Post Type in Gutenberg Editor

The plugin also supports conversion if you are using Classic editor. you can click on “Edit” link against post type under “Publish” meta box and choose your new post type.

Convert Post Type in Classic Editor
Convert Post Type in Classic Editor

Frequently Asked Questions

1. What is the difference between a post type and a post format in WordPress?

A post type defines the type of content in WordPress, such as Posts, Pages, Products, or custom post types. A post format is a display option available only for standard posts and includes formats like Gallery, Aside, Audio, Video, and Quote. Post formats do not create a new content type, so they should not be confused with post types. Converting a custom post type to a standard post does not automatically assign any post format. If needed, you can manually select a post format after the conversion is completed.

2. Will the converted posts keep their original publication dates?

Yes. All converted items retain their original publication dates. As a result, older content will appear in the “Posts > All Posts” screen according to its original publishing date and will not automatically move to the top of the list.

3. How can I easily track converted posts after the conversion?

If you are converting a large number of custom post type items, it is recommended to create a reference list before starting the conversion. Since the converted posts keep their original publication dates, locating specific items afterward can be challenging without a record.

4. Will my SEO data be preserved during conversion?

Yes. If you use popular SEO plugins like Yoast SEO or Rank Math, SEO titles, focus keywords, and meta descriptions will be automatically transferred to the converted posts. No manual migration is required.

5. Does the plugin convert all additional content sections?

No. The plugin only converts the main content area of the custom post type. For example, when converting WooCommerce products, only the “Product Description” is transferred. Additional sections like “Product Short Description”, “Product Data”, (which contains pricing information, inventory settings, etc.) and other product-specific fields are ignored. In this case, make sure all important information is included in the main “Product Description” field before conversion. Any content stored in other WooCommerce-specific sections will need to be added manually after the conversion. However, all “Customs Fields” will still be transferred to the converted posts.

6. Can I convert custom post types to draft posts instead of published posts?

No. The plugin does not provide an option to save converted items as drafts and all converted posts are published automatically. So, it is recommended to make all necessary content updates before starting the conversion process to avoid additional editing work later.

7. Can I undo the conversion after it is completed?

Not in all cases as the conversion process changes the post type of the selected content. For example, changing a WooCommerce Product to a Post and then reverting back will not create a similar product page with the product details like pricing and inventory. If you may need to revert the changes later, it is a good idea to create a full site backup before running the conversion. This allows you to restore the original content structure if necessary.

Final Words

Custom post types are attractive for creating beautiful content. However, it can easily clutter your admin panel and slow down your WordPress site. Many users also regret using lot of custom post types that come with the theme. We hope this article helped you to convert custom post types to posts and retain your search engine rankings.

Leave a Comment

Your email address will not be published. Required fields are marked *