Skip to:
Content
Pages
Categories
Search
Top
Bottom

Status Update & Blog Comments Only in Activity Stream

  • @korhanekinci

    Participant

    Hi,

    I am using latest WP and BP. I want to include blog comments (from main blog) and status updates in my activity stream.

    I have this filter to only show status updates in my activity stream which is added in my child theme’s function.php file:

    function my_custom_query_filter( $query_string ) {
    $query_string .= ‘&action=activity_update’;

    return $query_string;
    }
    add_filter( ‘bp_dtheme_ajax_querystring’, ‘my_custom_query_filter’ );

    What do i need to add so that blog comments from my main blog also show up in the activity stream?

    Thanks already.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @korhanekinci

    Participant

    Any ideas please?

    @nuprn1

    Participant

    the activity type (or action when passing it into the loop) for blog comments is “new_blog_comment” so just comma delimit:

    $query_string .= ‘&action=activity_update,new_blog_comment’;

    @korhanekinci

    Participant

    @nuprn1 thanks so much! I tested it and works!

    Just one thing though, activity stream now shows comments of registered users only (which is ok), but for example anyone can post comment to my blog, is there a possibility that anonymous users comments also appear in the activity stream?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Status Update & Blog Comments Only in Activity Stream’ is closed to new replies.
Skip to toolbar