@nikhilnaik
9 years, 4 months ago
I got this code snippet which gives the names of the groups to which the user belongs to –
<?php $group_ids = groups_get_user_groups(bp_displayed_user_id()); foreach($group_ids["groups"] as $group_id) { echo(groups_get_group(array( 'group_id' => $group_id )) -> name . (end($group_ids["groups"]) == $group_id ? '' : ', ' ) ); } ?>
Now, just need to get the link for the group and find the admin for the same.