WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 1 down vote accepted

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.

share|improve this answer
I have tried, it's not working. – Allen Jan 25 '12 at 19:20
What's not working? The export, or the import? And what do you mean by "not working" is it generating an error, or just not displaying the way you expect? – nathangiesbrecht Jan 25 '12 at 19:23
import is not working. I have exported data and changed the said line (post type name) and also registered that custom post type in new site but nothing displayed after importing. – Allen Jan 26 '12 at 6:26
There is an issue with export if you had selected a date range. Did you export all dates and choose just the custom posts? And had you tried to change the <link> </link> in the XML file or did you leave those alone? – Damien Jul 18 '12 at 23:08
I am having the same issue with export working (I checked the XML) and import working (finishing successfully) but only the custom post type posts won't show up. – Alex W Jan 28 '15 at 20:44

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.