Group Widgets

Get Started

Group Widgets

BuddyPress Stats Single Group Widget

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

  1. Go to Appearance > Widgets
  2. Find “BP Stats Single Group Widget”
  3. Drag to a group sidebar area
  4. Configure settings
  5. 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

  1. Go to Appearance > Widgets
  2. Find “BP Stats All Groups Summary”
  3. Drag to desired widget area
  4. Configure settings
  5. 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.

Last updated: January 28, 2026