0

I have an xml file with posts, authors, images, and other content that I am importing successfully into a new site, but I would like to remove all categories from posts and make them uncategorized at the time of importing or before. I tried removing the categories manually from the xml file in vs code but this seemed quite tedious as there are 100s of posts and many category tags. Thank you for your help.

5
  • have you tried using tools to modify the XML rather than doing it by hand?
    – Tom J Nowell
    CommentedNov 1, 2022 at 14:58
  • I am importing through the tools importer area, but haven’t located any plugins or features for editing the categories out of posts during the import.
    – Johnathan
    CommentedNov 1, 2022 at 16:39
  • I was trying to convey that an XML file isn't a WordPress specific thing, you can use generic tools that have nothing to do with WordPress to make your modifications rather than doing them by hand. These tools are not plugins or features you can add to a WordPress install, they could be a desktop application, code, or command line changes
    – Tom J Nowell
    CommentedNov 1, 2022 at 16:55
  • I see. Thank you for suggesting. I haven’t worked with xml files much before and am going to research tools suitable for this. I’m there is a script that could be written to clean the file of categories.
    – Johnathan
    CommentedNov 1, 2022 at 17:15
  • The term relationships table is what associates posts with a term (a category in this case). The uncategorized category is term ID 1, the object_id is the associated post ID.
    – t31os
    CommentedNov 2, 2022 at 11:36

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.