WordPress.org

Ready to get started?Download WordPress

Forums

Setting the default rss feed (2 posts)

  1. Shivakkumar Vadiveyl
    Member
    Posted 2 years ago #

    I have a site at ElliottAnalysis.com which also has buddypress installed. The problem I'm having is that the rss feed that is being returned to a call from external sites blogroll is the buddypress activity feed rather than the rss feed of the main site at ElliottAnalysis.com.

    It appears that the default rss feed is set to the buddypress activity stream feed. How can I change this so that default becomes rss feed of the main site?

  2. Pedro
    Member
    Posted 2 years ago #

    Hello,

    I had the same issue and I resolved it in the following way:

    - I used a BP compatible child theme
    - in the file called header.php from the child theme I replaced this line:

    <?php do_action( 'bp_head' ) ?>

    with this one:

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ) ?> | Main RSS Feed" href="<?php bloginfo('url'); ?>/feed/" />

    In this line you can change how you want the title to appear (put something else instead of "Main RSS Feed") as well as redirect to any other feed (like /feed/category/category-name/feed/ ).

    IMPORTANT: please note that by removing the line above (containing bp_head) you're also deactivating the members feed, group feed and other similar stuff. I'm not a BP expert and there might be other stuff done there. For my site this fix was ok and I didn't see any other side effect.

    Good luck!

Topic Closed

This topic has been closed to new replies.

About this Topic