Insert category in rss feed wordpress

I need to insert the category of the post in the RSS feed of a WordPress Blog . I edited the file /wp-include/feed-rss.php inserting line:
]]> but I’m probably wrong with the php function name. So the category name doesn’t appear. Can anybody help me?

http://piattoforte.tiscali.it/cibario/feed/

Related posts

Leave a Reply

1 comment

  1. I think there is default function available in wordpress the_category_rss($type). for rss the_category_rss(‘rss’)/the_category_rss(‘rss2’)/the_category_rss(‘atom’) after the_title_rss() tag or wherever you want in the corresponding feed-rss.php/feed-rss2.php/feed-atom.php files in includes folder. Once this is done we can see the category tag in feed xml. Otherwise we can create add_action in functions.php