WordPress.org

Ready to get started?Download WordPress

Forums

WordPress won’t import my categories and tags (9 posts)

  1. dancort
    Member
    Posted 5 years ago #

    This is the problem, when I import my posts using WordPress Import xml feature, it won't load my categories either my tags. Actually everything is there, but doesn't show up.

    The fix for categories is explained here: (it really works).

    http://www.livingbehindthecurve.com/?p=595

    But it doesn't work for tags, actually it prob will work, but as I got more then 9.000 it will be almost impossible assign all of them into the post.

    So do you guys have a solution for that?! Thanks a lot! =)

  2. Samuel B
    moderator
    Posted 5 years ago #

    have you tried a database import?

  3. dancort
    Member
    Posted 5 years ago #

    actuaally not because i did the xml myself from another database (it's not a wordpress database). The xml is valited and its all good with it, so the problem i guess is not with the xml, but somehow with the wordpress import feature.

  4. Samuel B
    moderator
    Posted 5 years ago #

    aaahhh...
    is the previous format in one listed on wordpress import page?

  5. dancort
    Member
    Posted 5 years ago #

    what you mean? the xml format is the same as the wordpress one... it works fine for everything... even the categories and tags are there, but somehow there is no connection between them... when I do that the blog post says, it works for categories, it prob will work for tags as well but as I got 9000 tags it will be almost impossible to assign all of them into a post...

  6. jeffmcneill
    Member
    Posted 5 years ago #

    This is still broken in WP 2.7.1, both for categories and for tags. The fix above works for categories, but tags has no checkboxes to toggle...

  7. timdesjardins
    Member
    Posted 4 years ago #

    Process_tags function can't handle WordPress' own tag format. This is with version 2.8.4, so I can't speak to older versions. I think. Still testing

    Very odd.

  8. timdesjardins
    Member
    Posted 4 years ago #

    Here's what I did to get tags working properly:
    Use the following for the tags (one tag per line):
    <wp:tag><wp:tag_slug>iPhone</wp:tag_slug><wp:tag_name><![CDATA[iPhone]]></wp:tag_name></wp:tag>
    instead of (one tag on multiple lines):

    <wp:tag>
    <wp:tag_slug>tag1</wp:tag_slug>
    <wp:tag_name>
    <![CDATA[tag1]]>
    </wp:tag_name>
    </wp:tag>

    The thing to remember is that they are just doing simple line oriented (and dumb regex) parsing of the XML and not true serialization (unfortunately.)

    The same is true for categories.

  9. dlawton
    Member
    Posted 4 years ago #

    same problem for me, the xml looks correct but posts have no tags, categories are fine

Topic Closed

This topic has been closed to new replies.

About this Topic