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.
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
RaviHello 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!
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.
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 attributedisplay_comments ="stream"
Regards
Brajesh
The topic ‘ [Resolved] Buddypress Activity Shortcode comments’ is closed to new replies.