Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP_Groups_Widget isnt’ calling bp_ajax_querystring


  • oneskysandy
    Participant

    @oneskysandy

    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?

Viewing 1 replies (of 1 total)

  • shanebp
    Moderator

    @shanebp

    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.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar