Importing posts in custom post type into new website

I have two wordpress installs. One in root directory and other in subdirectory of the same domain. I want to transfer posts of subdirectory into a custom post type of main site. Post of subdirectory (to be transferred) have several taxonomies so should I import and transfer taxonomies first? If yes then how to? and do all this transfer?

Related posts

Leave a Reply

3 comments

  1. I think all you should need to do is export from WP as you normally would if you were just transferring the content. Download the resulting XML file, change all <wp:post_type>post</wp:post_type> entries to <wp:post_type>YOUR_CUSTOM_POST_TYPE</wp:post_type>. This should work, assuming your Custom Post Type is already registered in the theme.

  2. I just found the solution. You have to go to Appearance -> Themes and click “Customize” for the theme that is currently activated and then choose the option to have a static front page and choose a page to be the blog page.

    After I did that, all of my custom post type posts showed up and my home page wasn’t broken anymore.

  3. Recently I did something like this on a WordPress blog using a plugin (Post Type Switcher) to change the type of the post. On Old WordPress website, I had Posts which I wanted to move to the new website under “Blog” custom post type.

    The above plugin allows you to change Post Type of imported posts.