Assigning an Event to a BP Group in FrontEdit


Setup: WP 3.4.1 + BP 1.6.1 + Events 1.4.2 + BuddyPress Group Events 1.0

I use the Front Page Editor to let my users create Events. The dropdown with group names only shows the first 20 group names.

This is caused by the default value of option ‘per_page’ in the BP function groups_get_groups().

Current functionality doesn’t make sense in a dropdown box. One possible fix is something like

$group_count = groups_get_total_group_count();

$groups = groups_get_groups( array(‘per_page’ => $group_count , ‘type’ => ‘alphabetical’:wink: );

in file eab-buddypress-group_events.php