Reply To: Display activity of a specific group
Hi,
you have to use a group_id and to ensure you’re in an appropriate loop (activity or group)
To get a group id, you can for ex. do:
// check for a group ID
if( bp_has_groups() ) {
// Grab current group ID
bp_the_group();
$group_id = bp_get_group_ID();
}
// apply our changes only to this group ID's
// conditionnal action
if ( $group_id == 22 OR $group_id == 8 ) {
… and so on!
You may also use bp_parse_args, depending where you use your custom work. In other words, you can create a complete new activity loop on a distinct page template for only one group.