WordPress.org

Ready to get started?Download WordPress

Forums

XML Sitemap & Google News feeds
[Plugin: XML Sitemap & Google News Sitemap Feeds] Sitemap is being redirected to Feedburner (7 posts)

  1. randymarsh
    Member
    Posted 3 years ago #

    Hi, great plugin. I switched to it after using Google Sitemap xml Generator because this one supports multisite with domain mapping.

    I have it networked activated on my WordPress multisite setup. The only problem is that some of my sites have the Feedburner plugin and I think it is redirecting sitemap.xml to it. I'm a little bit clueless as to how to fix this. Could anyone offer some insight into how I would go about fixing this? Thanks

    http://wordpress.org/extend/plugins/xml-sitemap-feed/

  2. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

    ...the Feedburner plugin...

    Which one is that? Feedsmith?

    I've got a similar setup (Multi-site with XML Sitemap Feed network-activated) where some sites use FD Feedburner Plugin and all is working properly... I can recommend that one :)

  3. Gary Jones
    Member
    Posted 3 years ago #

    Are you familiar with the Genesis Theme Framework? The sitemap feed also gets redirected when using the Redirect Feed setting within Genesis.

    Is this likely a case of Genesis incorrectly redirecting ALL feeds, instead of just the main feed (?feed=rss2) ?

  4. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Gary, I'm not familiar with that framework but it sounds like that the theme is a bit too 'inclusive' with its redirection...

    Maybe a good idea to suggest a less inclusive method (like used in the FD Feedburner plugin) for future versions to the developers of the Genesis framework?

    Until then, you can always choose to not use the frameworks feed redirection option but instead install a plugin that only redirects rss (and maybe atom) feeds.

  5. Gary Jones
    Member
    Posted 3 years ago #

    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.

  6. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

    Yes, that would be exactly what is needed here...

  7. Gary Jones
    Member
    Posted 3 years ago #

    Great, thanks for the confirmation :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic