Reply To: I am trying to remove activity comments as separate entries
thank you for your help, but please, don’t give a 4 years old solution without testing it.
At first, the snippet contains cote errors, and second, it doesn’t work with BP 2.x, as things has changed.
You can easily modify your template loop by using bp_parse_args function.
Here a working example (activity-update is commented – uncomment to see the difference)
You simply have to list what to show. Anything not listed will be ignored, on all activity feeds.
Add this to bp-custom.php or child theme functions.php
function my_bp_activities_include_activity_types( $retval ) {
// only allow the following activity types to be shown
$retval['action'] = array(
// 'activity_update',
'activity_comment',
'new_blog_post',
'new_blog_comment',
'friendship_created',
'created_group',
);
return $retval;
}
add_filter( 'bp_after_has_activities_parse_args', 'my_bp_activities_include_activity_types' );