I have also thought it strange.
My hack: qa-include/qa-feed.php (around L400)
Before:
if (isset($question['categoryname'])) $lines[]='<category>'.qa_xml($question['categoryname']).'</category>';
After:
if (isset($question['categoryname'])) $lines[]='<category>'.qa_xml($question['categoryname']).'</category>'; if (isset($question['tags'])) { $tags = explode(',', $question['tags']); foreach ($tags as $tag) $lines[]='<category>'.qa_xml($tag).'</category>'; }
if (isset($question['tags'])) { $tags = explode(',', $question['tags']); foreach ($tags as $tag) $lines[]='<category>'.qa_xml($tag).'</category>'; }
If you are using Q2A only tag, it will not have a problem with this. However, if you are using both (categories and tags), it may be necessary to devise to distinguish between categories and tags. By the way, wordpress feed is also same.
One more hacks:
//if (isset($question['categoryname'])) // $lines[]='<category>'.qa_xml($question['categoryname']).'</category>'; if (isset($question['categorybackpath'])) { $cats = explode('/', $question['categorybackpath']); $cats = array_reverse($cats); $cats = implode('/', $cats); $lines[]='<category>'.qa_xml($cats).'</category>'; } if (isset($question['tags'])) { $tags = explode(',', $question['tags']); foreach ($tags as $tag) $lines[]='<category>'.qa_xml($tag).'</category>'; }
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.