How can I get activities of subscribed groups?
I have this snippet that lists all the activity updates, I want to be able to fetch all the activity updates of only subscribed groups
<?php if ( bp_has_activities('action=activity_update&user_id=' . get_current_user_id()) ): ?> <?php while ( bp_activities() ) : bp_the_activity(); ?> <?php bp_activity_content_body() ?> <?php endwhile; ?> <?php endif; ?>
I thought inserting
user_idwould filter out the groups I’m not subscribed to but it’s fetching all the activities of the site
- You must be logged in to reply to this topic.