Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,844
- How-to & Troubleshooting
- 128,826
- Creating & Extending
- 25,735
- Requests & Feedback
- 9,442
- Third Party Plugins
- 9,772
- Showcase
- 3,317
- Ideas
- 1,388
- Miscellaneous
- 9,128
-
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