Hi All,
I have an extra feed of things that I want to offer along with posts and comments. The actual script that generates this feed is here:
http://harrymetcalfe.com/wp-content/themes/hemingway/zeitgeist/feed.php
That, however, is horrid. I want to have that feed appear at this URI:
http://harrymetcalfe.com/zeitgeist/feed
After a futile hour messing with .htaccess, I figured it would be better to use template_redirect, so I added the following:
add_action('template_redirect', 'do_template_redirect');
function do_template_redirect()
{
global $wp_query;
if($wp_query->query_vars['pagename'] == 'zeitgeist' && $wp_query->query_vars['feed'] == 'feed')
{
include TEMPLATEPATH . "/zeitgeist/feed.php";
exit;
}
}
In Firefox, http://harrymetcalfe.com/zeitgeist/feed works as expected. It doesn't work anywhere else, however -- my feed reader, wget and Google Reader all get a 404 when they access that URI.
Any clues?