Skip to:
Content
Pages
Categories
Search
Top
Bottom

Show blog comments in group activity stream


  • DesignFirm
    Participant

    @designfirm

    Hello,

    I’m trying to display regular WordPress comments in a Buddypress group activity stream.

    I have the “Site Tracking” component turned on in the Buddypress settings. Post comments are showing in the commenter’s own activity stream. However, they don’t show on the page of the group that the member belongs to. In other words, I would like group members’ post comments to show in the group activity stream.

    I tried to add the ‘group’ context to ‘new_blog_comment’ action like this:

    
    function filter_bp_blogs_register_post_tracking_args($params) {
        
        $params->comments_tracking->contexts  = array( 'activity', 'member', 'group' );
        return $params;
    }
    
    add_filter( 'bp_activity_get_post_type_tracking_args', 'filter_bp_blogs_register_post_tracking_args', 15 );
    

    This added the “Commments” option to the dropdown menu on the group’s page, but not any comments. And when I select it from the menu, it just reloads what’s there already.

    Is what I’m asking possible?

    Thanks,
    Scott

    Wordpress 4.7.5
    Buddypress 2.8.2
    site is currently local

  • You must be logged in to reply to this topic.
Skip to toolbar