Skip to:
Content
Pages
Categories
Search
Top
Bottom

Listing Profile Fields to Group Members


  • deusebio
    Participant

    @deusebio

    I’m trying to find a way to use two profile fields to help group and list members of my site. So there’s a continent field and a country field that I want to use, but am not quite sure if it’s possible with buddypress out of the box.

    The grouping would go something like this:
    Continent
    — Countries
    —- Members

    I imagine the loop to display would be something like:
    -Get list of continents and display it
    — within that loop, get the list of country that belong to said continent and display it
    — within that loop, display all the members that belong that country

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

  • Mohd Umar
    Participant

    @mohdumar1654

    Hi @deusebio,

    It is possible to add custom filters in members directory, you can use
    bp_directory_members_search_form hook to add your custom fields.

    Then you can add custom code to 'members_filter' ajax to get the filtered members.


    deusebio
    Participant

    @deusebio

    Thanks for the tip! I’ll report back with code if I can get it to work.

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