Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • nikhilnaik
    Participant

    @nikhilnaik

    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.

Viewing 1 replies (of 1 total)
Skip to toolbar