We're importing an eXtended RSS file generated by WordPress thru the native Importer:

Tools: Import in the WordPress admin panel

Importing parent posts is straightforward, by defining the respective parent id:


However, during the export the hierarchy of categories, subcategories and so on gets lost, and we're trying to set the according parent categories inside xml file. We've tried the following without any success:

<category domain="docs_category" nicename="category-1"><![CDATA[Category]]></category>

And for another post:

<category domain="docs_category" nicename="subcategory-1" parent="category-1"><![CDATA[Subcategory]]></category>

We cannot find any explicit documentation regarding build of such Wordpress RSS file.

Could someone please point out a link to the documentation on Wordpress?

Moreover, the closest example we've found was on GitHub:

        <wp:cat_name><![CDATA[Test Category 1]]></wp:cat_name>
        <wp:cat_name><![CDATA[Test Subcategory 1]]></wp:cat_name>

We're not working with the taxonomy domain="category", but wp:category_parent sets us on the right path.

The question is:

How to set the correct parent category for each channel item, i.e. each unique post individually?

Thanks in advance for any help on this kind of urgent matter!

1 Answer 1


The following code snippet did the trick:

    <wp:term_name><![CDATA[Test Category 1]]></wp:term_name>
    <wp:term_name><![CDATA[Sub Category 1]]></wp:term_name>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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