1 week, 1 day ago
We are trying to filter the group lists Group Meta queries, but the BuddyPress Groups Widget isn’t using the same filtering method. We are following this tutorial:
Group Meta Queries: Usage Example
But BP_Groups_Widget isn’t calling bp_has_groups with bp_ajax_querystring.
This is /bp-groups/classes/class-bp-groups-widget.php:
if ( bp_has_groups( $group_args ) )
While bp-default/groups/groups-loop.php is using this:
if ( bp_has_groups( bp_ajax_querystring( ‘groups’ ) ) )
Is this a bug? Is there a way to customize which groups the BuddyPress Group Widget displays?
The fastest and simplest solution would be to write your own widget.
Then you have complete control.
I suggest you create a plugin which calls a class that is a clone of the existing widget.
Change the names and make your custom calls.
See also: WordPress.org •
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service