Skip to:
Content
Pages
Categories
Search
Top
Bottom

Private posts showing in RSS feed & Widgets


  • desireroberts
    Participant

    @desireroberts

    Hi All,

    I have a small forum which has some private groups (which are used for classes) and a hidden group for the administration team which runs the website.. the RSS is showing everything we post on the forum, public, private AND hidden. I can’t have that happen because the thrashings between team members (and there are a couple) are showing on the facebook page and widget, from the RSS… which is not good. It’s supposed to be a private place for everyone to put aside their differences and move along. But now everyone can see it.

    I’m trying to find a way around it since the RSS was such a great feature and really helps increase my traffic from my facebook page..

    Any ideas anyone?

Viewing 3 replies - 1 through 3 (of 3 total)

  • desireroberts
    Participant

    @desireroberts

    Forgot to give you this info:

    I’m using WordPress 3.5.1. and bbPress 2.3.2.


    xmasons
    Participant

    @xmasons

    Add this into your functions.php

    function disable_our_feeds() {
    	wp_redirect(get_option('siteurl'));
    }
     
    add_action('bbp_feed', 'disable_our_feeds', 1); // Disables BBPress feeds
    add_action('do_feed', 'disable_our_feeds', 1);
    add_action('do_feed_rdf', 'disable_our_feeds', 1);
    add_action('do_feed_rss', 'disable_our_feeds', 1);
    add_action('do_feed_rss2', 'disable_our_feeds', 1);
    add_action('do_feed_atom', 'disable_our_feeds', 1);

    AdiCumpanasu
    Participant

    @adicumpanasu

    Has this problem been resolved in the newer versions?

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.