BuddyDev

Search

[Resolved] Buddypress Activity Shortcode comments

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #31162

    Hello.

    I noticed the Buddypress activity shows comments on posts, which is great – but how do I get it to show up on Shortcodes too?

    The list given earlier were

    
    activity_comment
    activity_update
    bbp_topic_create
    friendship_created
    joined_group
    new_avatar
    new_blog_post
    new_member
    updated_profile

    Comments on posts?

    Thank you.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #31164

    Hello Johnny,

    Thank you for posting. I have tested and it is working fine for me comment posted on a post showing in activity generated using ‘[activity-stream]’ shortcode. Please share your shortcode you are using to generate activity. Also, please do let me know you have enabled “Site Tracking” module in BuddyPress settings and comment is not in moderation.

    Regards
    Ravi

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #31178

    Hello again!

    I’m using

    [activity-stream title="" per_page=8 load_more=1 pagination=0 action=activity_update,activity_comment,updated_profile,new_blog_post load_more=1]

    I don’t see comments for posts 🙁

    Interesting…I don’t see comments on posts in activities page either. Huh.

    I guess I’ll need to troubleshoot on my end, assuming shortcode I am using is correct.

    Thanks!

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #31179

    Comments on posts are showing up on personal activities, but not on bp activity page or shortcode ;(

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #31181

    Okay, my activities page isn’t showing comments on post, only on “Personal” in profile.

    But if I add this, it shows on activity page, BUT not on your shortcode.

    function activity_comments_stream_mode( $args = array() ) {
    	return array_merge( $args, array(
    		'display_comments' => 'stream',
    	) );
    }
    add_filter( 'bp_before_has_activities_parse_args', 'activity_comments_stream_mode', 20, 1 );
    

    Any suggestions?

    Thank you!

    PS yes Site Tracking is on, no comments in moderation.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #31194

    Hi JJ,
    You do not need the above code. If using stream type solves your issue, you can pass it in the shortcode as an attribute

    
    display_comments ="stream"
    

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #31204

    Thank you! Sincerely appreciate the input 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #31209

    You are welcome.

The topic ‘ [Resolved] Buddypress Activity Shortcode comments’ is closed to new replies.

This topic is: resolved