BuddyDev

Search

[Resolved] Option for setting the gender of profiles showing in BP plugins

  • Participant
    Level: Yogi
    Posts: 1117
    calu on #11656

    In BP plugins like “Who’s online”, “BuddyPress Members” and “Recently Active Members” there are no option for setting gender.
    If you are on a social meeting site, you do not want to see men, if you are searching for a woman.

    In the register site new members define their sex.
    How do I exclude members of the profiles own sex, from showing in these plugins?

    Regards

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #11657

    Hi Carsten,
    Thank you for posting.

    At the moment there is no standard way to know a user’s gender and that’s why there are no specified ways.

    For a developer, It is easy to accomplish.

    If I had to do something for this, I will create member types for gender and use that to filter the things.

    How are you using gender on your site?

  • Participant
    Level: Yogi
    Posts: 1117
    calu on #11778

    Hi Brajesh, by registering the subscribers already defined their gender in a field created in the user profile.

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #11782

    Please post the values for “Male” and the “Female” and also the field name/id( I need to fetch the value for logged in user).

    We can make it work by using xprpofile_query. It won’t be as efficient as the member type though.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #29509

    Marking resolved due to age of the ticket.

The topic ‘ [Resolved] Option for setting the gender of profiles showing in BP plugins’ is closed to new replies.

This topic is: resolved