Skip to:
Content
Pages
Categories
Search
Top
Bottom

[resolved] how to sort members using one (or multiple) fields?

  • Avatar of Grosbouff
    grosbouff
    Participant

    @grosbouff

    Hi guys, I know a lot of people were wondering how to change the way members are sorted.
    For my plugin, BuddyPress Real Names, I found how to change the way members are sorted alphabetically.
    By default, the field used is the base field (NAME).
    Here’s the code hooked on ‘bp_pre_user_query’ to use another field (or multiple ones) for alphabetical sorts.
    The code should be updated for your needs buts here’s what I found :

    http://pastie.org/6030760

You must be logged in to reply to this topic.