Activity stream not showing in homepage of edu clean template

I have the activity stream set to show on my homepage using the edu clean template. It is not showing up, instead I am getting this:

Sorry the post you looking for have been removed, feel free to browse our other post

please help?

  • Tammie

    @meesh: This is a known issue with edu clean and it will be updated soon. The fix is this:

    1. Open up bp-functions.php

    2. At line 114 after this function:

    /* Force the page ID as a string to stop the get_posts
    query from kicking up a fuss. */
    function bp_dtheme_fix_get_posts_on_activity_front() {
    global $wp_query;

    if ( !empty($wp_query->query_vars['page_id']) && 'activity'
    == $wp_query->query_vars['page_id'] )
    $wp_query->query_vars['page_id'] = '"activity"';
    }
    add_action( 'pre_get_posts', 'bp_dtheme_fix_get_posts_on_activity_front' );

    Add this function:

    '/* WP 3.0 requires there to be a non-null post in the posts array */
    function bp_dtheme_fix_the_posts_on_activity_front( $posts ) {
    global $wp_query;

    // NOTE: the double quotes around '"activity"' are thanks
    to our previous function bp_dtheme_fix_get_posts_on_activity_front()
    if ( empty( $posts ) && !empty( $wp_query->query_vars['page_id'] )
    && '"activity"' == $wp_query->query_vars['page_id'] )
    $posts = array( (object) array( 'ID' => 'activity' ) );

    return $posts;
    }
    add_filter( 'the_posts', 'bp_dtheme_fix_the_posts_on_activity_front' );