Skip to:
Content
Pages
Categories
Search
Top
Bottom

Get groups only have 1 result in group page


  • javasworks
    Participant

    @javasworks

    Hi, im on group page. In the sidebar, i want to get ALL groups by using whether bp_has_groups and BP_Groups_Group::get. But i only get 1 result.

    In home page (and other page), the result is correct (get all groups). The problem is only when in individual/single group page.

    What caused this? How to solve it?

Viewing 1 replies (of 1 total)

  • danbp
    Participant

    @danbp

    Hi @javasworks,

    you get only one result because you’re in ONE group loop. If you did a custom work, you may omited or done something wrong.
    See here how BuddyPress Groups widget is coded, perhaps you can find some inspiration.

    Or more easy, why don’t you simply use the Group widget ?

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