Way we currently detect categories is, if an outline does not have a URL, we consider it a category, and keep that in memory as the "current" category. (This also wrongly applies a category to uncategorized items that somehow follow a [closed] "category" outline.)
Way we currently detect categories is, if an outline does not have a URL, we consider it a category, and keep that in memory as the "current" category. (This also wrongly applies a category to uncategorized items that somehow follow a [closed] "category" outline.)
https://github.com/janboddez/feed-reader/blob/fa03828a648ed6d330e8b9fe2e56c5757ee5bc21/includes/Helpers/class-opml-parser.php#L102
Think OPML v2 supports a comma-separated (?) category attribute on the actual feed items themselves, so we could try adding that in.
Since we support only one category per feed (which is different from WP's built-in taxonomies), we can either pick the first or the last one, for now.