Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,859
- How-to & Troubleshooting
- 128,903
- Creating & Extending
- 25,742
- Requests & Feedback
- 9,445
- Third Party Plugins
- 9,773
- Showcase
- 3,317
- Ideas
- 1,389
- Miscellaneous
- 9,134
-
The reason is bp_get_group_avatar_thumb() assumes you are inside group loop and simply ignores the $group,which you passed.
A possible solution will use this method instead.
//code edited from here
Edit:checked my template, It seems ,It does not work. Instead use
bp_core_fetch_avatar( array( 'item_id' =>YOURGROUPID, 'object' => 'group', 'type' => 'thumb', 'width' => 64 ,'height' => 64 ) )
Hope It helps.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS