Re: How to query for groups
To extend on Travel-Junkie
`$group = new BP_Groups_Group( $group_id );
foreach ($group as $key => $value)
{echo $key . ‘ = ‘ . $value. ‘‘;}`
this will break down in list form all the information you need for the group.
Here is another nice little trick that works hand in hand with information returned from the above script. Lets say you want to show an excerpt from the groups description .
This passes the description in the bp_create_excerpt() function as well as set how many words you want returned…then echo out the results.
`$description = $group -> description;
$descibe_excerpt = bp_create_excerpt( $description, 20 );
echo $descibe_excerpt;`