By Andy on Saturday, 07 January 2017
Likes 0
Views 551
Votes 0
I've tried the developer documentation for the answer but can't find it... can you help with this...

Is there PHP code I can use to display a group avatar if I know the group ID number?

Thanks!
It's pretty easy,

[gist]
<?php
$group = ES::group($id);
echo $group->getAvatar();
?>
[/gist]
·
Saturday, 07 January 2017 13:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Brilliant. Thanks Mark. Beautifully easy... and I can follow the user avatar documentation to adjust the avatar size too. Nice!
·
Saturday, 07 January 2017 21:43
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Saturday, 07 January 2017 22:19
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post