Skip Navigation

[Resolved] How to convert one post type to another

This support ticket is created 7 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 2.14 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 7 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#583071

I have some of post types. Let's say:
PostType1 and PostType2

So, I want to convert all of PostType2 to PostType1 and not lose it's data... Is there any way to do it fast and automatic, not manualy post by post?

#583171

Dear Kirill,

There isn't good way to migrate between post types from wp-admin, unfortunately. There are only a few options you can try, here is my suggestions:
1. Make manual modifications to the wp_post table in your database. Change the 'post_type' column of this post to match the slug of your desired post type.
2. Export your posts, edit the export package to use the desired post type slug, and re-import the posts as a new post type.
3. Use a 3rd-party plugin to do this for you. for example:
https://wordpress.org/plugins/search/convert+post+type/
I understand there are a few post type switching plugins but I don't have any experience with them so I can't really help much.

All of these options carry some risk, and you should always make a complete backup before you attempt any database changes. This way you can revert quickly if you make a mistake.