Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to display all groups in order to asc/desc by id (group id)


  • streetcoder
    Participant

    @streetcoder

    I have been trying to show the all groups order by id in asc. That first created group will be displayed first. I wrote the argument in querystring order=DESC or ASC , find no effect.

    bp_has_groups( bp_ajax_querystring( 'groups' . 'order=DESC' ) ) )

    Please anybody help me?

Viewing 5 replies - 1 through 5 (of 5 total)

  • shanebp
    Moderator

    @shanebp

    Try:

    bp_has_groups( 'orderby=date_created&order=ASC' )

    or

    bp_has_groups( bp_ajax_querystring( 'orderby=date_created&order=ASC' ) )


    streetcoder
    Participant

    @streetcoder

    really interesting, not working, I tried in two buddypress site to rid of the confusion. But no effect at all.


    sharmavishal
    Participant

    @sharmavishal

    Does this work? it works for members-loop

    bp_has_groups( bp_ajax_querystring( ‘groups’ ).’&type=alphabetical’


    streetcoder
    Participant

    @streetcoder

    No it does not work in the directory.


    sharmavishal
    Participant

    @sharmavishal

    Maybe you can refer this

    Groups Loop

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to display all groups in order to asc/desc by id (group id)’ is closed to new replies.
Skip to toolbar