BuddyDev

Search

WordPress Comments in Buddypress main Activity Stream

  • Participant
    Level: Master
    Posts: 222
    Mike (DesignServe) on #25882

    Hi Brajesh,

    Do you know if there is a way to display WordPress Comments from Pages or Posts on the Buddypress main activity stream? A plugin maybe?

    Thanks,
    Mike

  • Participant
    Level: Master
    Posts: 222
    Mike (DesignServe) on #25885

    I found the following code online and added it to my bp-custom.php I think that should do it.

    
    function push_comments_to_activity() {
         return array( 'page', 'post' );
    }
    add_filter( 'bp_blogs_record_comment_post_types', 'push_comments_to_activity' );
    

    We’ll see when someone adds a comment 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 19859
    Brajesh Singh on #25894

    Hi Mike,
    I believe the above should work. please do let me know if it does or not?

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved