Skip to:
Content
Pages
Categories
Search
Top
Bottom

Filter members directlory list with conditional statement

  • Avatar of evo252
    evo252
    Participant

    @evo252

    Hello,

    I would like the members directory display all male users if the logged in user is a female, and all female users if the logged in user is a male. Is there a way to make that with BuddyPress ?

    Thank you !

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    You will need to filter in your members/index.php template based on the value of your xprofile field.

    Avatar of evo252
    evo252
    Participant

    @evo252

    Hello Paul,

    Thank you for the purpose, I’m very sorry to disturb you but I have just installed BuddyPress and I don’t have any idea to make that. What’s the code for customizing the loop placed in members/index.php ? How can I know the ID of the value of the gender field ?

    Thanks.

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

The topic ‘Filter members directlory list with conditional statement’ is closed to new replies.