WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How to import without merging?

[Resolved] How to import without merging?

  • I got a serious problem importing WP to WP, the import method used by WordPress merge the categories and this breaks my import. I’m using it as a CMS store and have hierarchical categories, some with the same name but in other levels.

    How do I import all the content, creating new categories?

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi
    Forum Moderator

    @esmi

    I’ve imported 50+ categories before now and haven’t lost a single one.

    @esmmi, probably any of theses categories had the same name “slug”. In my case I got it merged. The categories is like that:

    WP1
    Rock
    – Bass Heads
    – Snear Heads

    WP2 content to import to WP1
    Jazz
    – Bass Heads
    – Snear Heads

    When imported, it merges the categories with the same name and I got this:

    After import
    Rock
    – Bass Heads
    – Snear Heads
    Jazz

    esmi
    Forum Moderator

    @esmi

    I’m fairly sure that the sample data import contains at least 1 (or more) similar category trees specifically to test for this kind of issue. I’ve used that import file a number of times and I’ve not had any merges.

    I made a test with this sample and got the same error. If you want, try this:

    These are the original categories on the file:
    aciform
    – sub
    Parent
    – Child 1
    – – Child 2

    Before import, create these categories:
    UniqueXYZ
    – sub
    – Child 1
    – – Child 2

    Now put some posts inside the new categories just to check after and now import the file. You will got this kind of categories after import.

    aciform
    Parent
    UniqueXYZ
    – sub
    – Child 1
    – – Child 2

    See, you loose the relation between sub, Child 1 and Child 2.

    I found a ticket on Bug Trac, more than one year ago, it’s a deffect. I made a workaround renaming all the categories before import as “… i1, … i2, … i3, …”, to make everything unique and rename it again to remove the “i…” after import the content. It’s not a solution but works.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] How to import without merging?’ is closed to new replies.