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?
Leave a Reply
You must be logged in to post a comment.
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