How to generate feed for custom template
Start with adding your new feed name and custom function through add_feed, then dont’t forget to flush rewrite rules (just once). You can find several WordPress functions that will help your formatting the Feed XML.