Skip to:
Content
Pages
Categories
Search
Top
Bottom

Alphabetize Groups and Members?

Viewing 8 replies - 1 through 8 (of 8 total)
  • @burtadsit

    Participant

    The default sort order for directories is ‘active’. It dispays the most recently active first in the directory. You can change that by using a different sort order in your theme. See the docs for the loops here:

    https://codex.buddypress.org/developer-docs/custom-buddypress-loops/

    In the default theme, the loop for members is controlled by /bpmember/directories/members/members-loop.php in the function:

    bp_has_site_members( ‘type=active&per_page=10’ )

    Changing type=active to type=alphabetical should get you there.

    @kitwit

    Participant

    Thanks so much, Burt! It worked like a charm!

    @kitwit

    Participant

    Hmmm … now I’ve managed to get my members to alphabetize, but my groups won’t … I’ve modified the groups-loop.php to show the type=alphabetical but so far, it’s not working … I know something is working, though, because I changed my &per_page to 20 instead of the default 10 … that part’s working. What am I doing wrong?

    @burtadsit

    Participant

    You are not doing anything wrong. Stop trying to do it right. :)

    Groups only comes in these flavors: active, newest, popular, random

    https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-site-groups-loop/

    @kitwit

    Participant

    Oh, that’s no good. Can’t we make a change to that? I know I’m trying to use Buddypress for a purpose it wasn’t necessarily designed to fulfill (a directory) … if random is a flavor, then can’t we have “non-random” (i.e., alphabetical?) as a flavor, too?

    @erich73

    Participant

    hmm… having groups sorted alphabetically, would definitely be a great thing.

    I would need this as well.

    @jeffsayre

    Participant

    Erich73-

    Place an enhancement ticket in trac.

    @peterjeshua

    Participant

    Any updates on this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Alphabetize Groups and Members?’ is closed to new replies.
Skip to toolbar