Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,857
- How-to & Troubleshooting
- 128,899
- Creating & Extending
- 25,740
- Requests & Feedback
- 9,445
- Third Party Plugins
- 9,773
- Showcase
- 3,317
- Ideas
- 1,388
- Miscellaneous
- 9,133
-
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