Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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. –  Ahmad 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. –  Ahmad 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
add comment

Your Answer

 
discard

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.