Skip to:
Content
Pages
Categories
Search
Top
Bottom

Filter activity feed by multisite blog

  • @jreddev

    Participant

    Hello Buddypress community,

    I have been searching and testing a way to filter the buddy press activity feed for each site within a multisite installation.

    I was given the following code to put in the bp-custom.php file but it returns no results in the activity feeds until a user posts an then still shows all activity…

    <?php
    /* This fixes the ability to have Activity Streams per site */
    function wpmu_query_filter( $query_string ) {
        $query_string .= '&object=blogs&primary_id=blog_id=' . get_current_blog_id();
        return $query_string;
    }
    
    if(get_current_blog_id() !==1) {
        add_filter('bp_ajax_querystring','wpmu_query_filter', 20);
    }
    ?>

    Has anyone accomplished this?

    I am using wp version 4.0 and bp version 2.1.

    Thanks

  • The topic ‘Filter activity feed by multisite blog’ is closed to new replies.
Skip to toolbar