Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,845
- How-to & Troubleshooting
- 128,835
- Creating & Extending
- 25,735
- Requests & Feedback
- 9,442
- Third Party Plugins
- 9,772
- Showcase
- 3,317
- Ideas
- 1,388
- Miscellaneous
- 9,128
-
Your pastie link doesn’t work.
This is working for me:
$myslug = 'my-test-group';
if ( bp_has_groups('type=single-group&slug='.$myslug) )
For some reason, you have to add the type as “single-group” as well.
If you’re just trying to get the group avatar of one group… just use bp_group_avatar() (view the params in bp-groups-templatetags.php) or bp_core_fetch_avatar() (view params in bp-core-avatars.php).
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS