Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: bp group API function to fetch a group by id outside of group context?

Thanks. I figured it out while waiting, even though your response was immediate ;)

$group = new BP_Groups_Group( 1, true );
$avatar = bp_core_fetch_avatar(
array(
‘item_id’ => 1,
‘object’ => ‘group’,
‘type’ => ‘full’,
‘avatar_dir’ => ‘group-avatars’,
‘alt’ => ‘Group Avatar’,
‘css_id’ => 0,
‘class’ => ‘avatar’,
‘width’ => false,
‘height’ => false
)
);

echo $avatar . “
“;
echo ‘slug.’/”>’.$group->name.’
‘.$group->description;

Skip to toolbar