How does wp_query decide if a request is a feed request? i would like to build a specialized template that would output an XML document (with the 5 latest posts) in a format other than RSS (a special geotagging XML). What would be the best way to go about doing that.
As of now, I have a plugin that hooks into 'template_redirect' to send it to a special template file. but that doesn't seem to be working. What I really need to tell template loader is "If you get a request for this URL, use this template" and then I'll provide a PHP template that outputs the XML. Is that a good idea? How do I tell template-loader to look for a specific file name or URL?