[Resolved] Filter custom activity stream to display only new groups, new topics, new replies
-
Good morning
My list of users is starting to grow, and the activity stream is starting to get very long and messy. So I’m trying to filter out the activity stream so that it doesn’t display friendships, and users joining groups. I’d like it to display only:
– new groups created
– new topics
– new repliesMy custom activity stream (below) used to work, but ever since I started using bbPress plugin separately, instead of the bbPress included with BuddyPress, the activity stream no longer works the way it should.
If I don’t have any filtering, the activity stream displays, but if I add any sort of filtering, the activity stream returns 0 items.
I’m using the latest bbPress 2.1.3, BuddyPress 1.6.1, and WordPress 3.4.2.
Can you tell me what I’m doing wrong, and how I can fix it?
`/* = Custom Activity Stream
* Place this function in bp-custom.php (in your plugins directory)function my_activity_stream($args ) {
if ( bp_has_activities($args) ) : ?>
<li class="” id=”activity-“>
<a href="”>bp_activity_content_body();
}
?>
`I then placed the function call (below) inside wp-content/themes/my_custom_theme/homepage.php
This doesn’t work, returns 0 items:
“This works, but returns all items, including friendships and group joins
“
- The topic ‘[Resolved] Filter custom activity stream to display only new groups, new topics, new replies’ is closed to new replies.