Group Widgets

BuddyPress Stats includes widgets for displaying group statistics in sidebars and widget areas.
Available Widgets
Single Group Stats Widget – Displays statistics for the currently viewed group.
All Groups Summary Widget – Shows an overview of all community groups.
Single Group Stats Widget
Adding the Widget
- Go to Appearance > Widgets
- Find “BP Stats Single Group Widget”
- Drag to a group sidebar area
- Configure settings
- Save
Widget Settings
| Setting | Description | Default |
|---|---|---|
| Title | Widget title | “Group Stats” |
| Show Members | Display member count | Yes |
| Show Activity | Display activity count | Yes |
| Show Chart | Display activity chart | Yes |
| Chart Days | Days shown in chart | 30 |
Where It Appears
This widget only displays on group pages: Single group view, Group activity tab, Group members tab, Other group sub-pages. On non-group pages, the widget is hidden.
Statistics Displayed
| Stat | Description |
|---|---|
| Total Members | Current member count |
| Active Members | Members active this month |
| Total Activities | All group activities |
| This Week | Activities in past 7 days |
Activity Chart
Mini chart showing group activity: Daily activity counts, Visual trend indicator, Hover for details.
All Groups Summary Widget
Adding the Widget
- Go to Appearance > Widgets
- Find “BP Stats All Groups Summary”
- Drag to desired widget area
- Configure settings
- Save
Widget Settings
| Setting | Description | Default |
|---|---|---|
| Title | Widget title | “Groups Overview” |
| Show Count | Display total groups | Yes |
| Show Members | Display total members | Yes |
| Show Top Groups | List most active | Yes |
| Top Groups Count | How many to list | 5 |
Statistics Displayed
| Stat | Description |
|---|---|
| Total Groups | All community groups |
| Total Members | Members across all groups |
| Active Groups | Groups with recent activity |
| Most Active | Top groups by activity |
Top Groups List
Shows most active groups: Group avatar and name, Member count, Activity count, Link to group.
CSS Classes
Single Group Widget
.bp-stats-single-group-widget– Widget container.bp-stats-group-avatar– Group avatar.bp-stats-group-stat– Individual statistic.bp-stats-group-chart– Activity chart
All Groups Widget
.bp-stats-all-groups-widget– Widget container.bp-stats-groups-summary– Summary stats.bp-stats-top-groups– Top groups list.bp-stats-group-item– Individual group
Performance
Group widgets use optimized queries with batch member count fetching and cached group statistics. Widget data cached for 1 hour, cache clears on group changes.
Placement Suggestions
Single Group Widget – Best in: Group sidebar (primary), Group header area, Group activity sidebar
All Groups Widget – Best in: Main site sidebar, Groups directory sidebar, Dashboard widgets, Footer widget areas
Troubleshooting
Widget not appearing – Verify you’re on a group page (single group widget), Check widget area is output in theme, Clear caching plugin caches.
Incorrect counts – Clear transient cache, Verify BuddyPress groups component active, Check for deleted groups with orphaned data.
Chart not showing – Check JavaScript console, Verify Chart.js loading, Test without other plugins.
