inpsyde / wpml2mlp

Convert posts from an existing WPML multilingual site via WXR Export/Import for MultilingualPress
https://wordpress.org/plugins/wpml-to-multilingualpress/
GNU General Public License v2.0
10 stars 6 forks source link

Exporter: Add taxonomy as separate node to term #35

Closed dnaber-de closed 8 years ago

dnaber-de commented 8 years ago

Currently the structure of an exported term looks like this:

<wp:category>
    <wp:term_id />
    <wp:category_nicename />
    <wp:category_parent />
    <wp:cat_name />
    <wp:category_description />
</wp:category>

This forces the importer to tread terms depending on their taxonomy. It would be way easier to pass the taxonomy as a separate node to the complete term:

<wp:category>
    <wp:term_id />
    <wp:category_nicename />
    <wp:category_parent />
    <wp:cat_name />
    <wp:category_description />
    <wp:taxonomy>category</wp:taxonomy>
</wp:category>