Hi RavanH,
add_filter('feed_link', 'genesis_feed_links_filter', 10, 2);
/**
* Filter the feed URI if the user has input a custom feed URI.
*
* @since 1.3
*/
function genesis_feed_links_filter( $output, $feed ) {
$feed_uri = genesis_get_option('feed_uri');
$comments_feed_uri = genesis_get_option('comments_feed_uri');
if ( $feed_uri && !strpos($output, 'comments') ) {
$output = esc_url( $feed_uri );
}
if ( $comments_feed_uri && strpos($output, 'comments') ) {
$output = esc_url( $comments_feed_uri );
}
return $output;
}
... is one of two functions that deal with feed redirects within Genesis. From your understanding of feeds and redirects, would you agree that the problem appears to lie in that first conditional (where it simply checks to see if "comments" does not appear) which also then catches the sitemap feed?
While other solutions are available, I'd rather get them to improve the framework itself. If the problem is where I think it is, getting them to check for feed types of exactly rss|rss2|rdf|atom would be a more stable solution.