The WordpressParser class looks through the potential categories on each post, and treats those with a taxonomy URI (domain in the XML) of category as categories, treats those with a taxonomy URI of tag as tags, and discards the rest. However, in a Wordpress export (at least from wordpress.com today), tags on posts are identified with the domain of post_tag: <category domain="post_tag" nicename="books"><![CDATA[books]]></category>. To get the parser to recognize tags, I had to preprocess the input to replace "post_tag" with "tag".
The
WordpressParserclass looks through the potential categories on each post, and treats those with a taxonomy URI (domainin the XML) ofcategoryas categories, treats those with a taxonomy URI oftagas tags, and discards the rest. However, in a Wordpress export (at least fromwordpress.comtoday), tags on posts are identified with the domain ofpost_tag:<category domain="post_tag" nicename="books"><![CDATA[books]]></category>. To get the parser to recognize tags, I had to preprocess the input to replace"post_tag"with"tag".