Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,662
- How-to & Troubleshooting
- 127,982
- Creating & Extending
- 25,647
- Requests & Feedback
- 9,399
- Third Party Plugins
- 9,725
- Showcase
- 3,320
- Ideas
- 1,346
- Miscellaneous
- 8,853
-
Depending on the context you’re using this in, this might not work correctly but try:
bp_get_group_id()
or:
global $bp;
$bp->groups->current_group->id;
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS