php - Get buddypress group slug by passing its ID -


i able link specific buddypress group using groups id on template page.

the admin inputs groups id custom field on page, using able generate groups slug create link it

any appreciated

to buddypress group slug group id:

$group_id = 2;     $group = groups_get_group( array( 'group_id' => $group_id ) ); $slug = $group->slug; 

Comments

Popular posts from this blog

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -