Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding Filters to the Member Directory


  • maddogprod
    Participant

    @maddogprod

    I want to add/change filtering on the Member Directory page, it doesn’t have to be using the dropdown select but that would be nice. I’d like to have filters so they can, for instance, see only a certain level of members, or see members listed by country, that sort of thing.

    I’m seeing lots of discussion searching online nothing very definitive. Can you point me to an FAQ or other source on how best (and hopefully easiest) to accomplish this? Basically I don’t need all the default choices for filtering but would like to add a “List by country” and similar choices.

    THANKS

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

  • shanebp
    Moderator

    @shanebp

    only a certain level of members, or see members listed by country, that sort of thing

    Those two things require different approaches to gathering member ids.

    Adding the order option is easy.
    But filtering the members will require specific solutions.

    Read this:
    https://buddypress.org/support/topic/adding-new-order-by-on-members-loop/

    You can remove default choices by creating a template overload of this file and adjusting the select element:
    buddypress\bp-templates\bp-legacy\buddypress\members\index.php

    Note that it will default to ‘active’ regardless.


    maddogprod
    Participant

    @maddogprod

    Thanks. I’ll take a look and digest it and let you know if I run into any questions or problems.

    MD

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding Filters to the Member Directory’ is closed to new replies.
Skip to toolbar