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?
![](https://itnursery.com/wp-content/uploads/2022/05/1653574379_apple-touch-icon@2.png)
3 Answers
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.