Skip Navigation

[Resolved] Migrating Posts from one site to Custom Post type on another site

This support ticket is created 5 years, 10 months 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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Beda 5 years, 10 months ago.

Author
Posts
#1182452

Support,

I'm combining two projects and would like to migrate the posts from one site into a custom post type on another site. I've create the custom post type and setup the custom fields, but how would I go about transferring the posts so they file under the CPT?

Thanks,
Charles

#1182768

If the post Types have the exact same data structure, slug, etc, then you can use the WordPress Export/Import Tools.
https://codex.wordpress.org/Tools_Export_Screen

If you need to transport other options too, we also have a more advanced export/import AddOn:
https://toolset.com/download/toolset-advanced-export/

However, for posts, even custom posts with their fields and terms, the WordPress export/import mechanism is the way to go.

Note, if you need to change the post types name during this process then that won't work, you will then need to bring your data to a CSV file, and edit that file to add the new Post Type name for example, then import it with a CSV importer (we do have some DOC for that as well: https://toolset.com/documentation/user-guides/how-to-import-content-into-wordpress-using-csv/)
But this should not be needed here.