Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search page to search custom user fields

  • @ks-webdesignercom

    Participant

    Hi, I would like to create a custom search page that allows users to select various criteria from user profiles to search on. For example if I create a profile field that allows user to select either male or female in their profile I would also like to allow users searching to filter on that field.

    Can anyone help or point me in a useful direction?

Viewing 2 replies - 1 through 2 (of 2 total)
  • @ks-webdesignercom

    Participant

    So I’m trying to figure this out on my own and I got as far as finding out that since BuddyPress 1.7 there’s a new class: BP_User_Query – which should be similar to the standard wordpress WP_User_Query

    However the official BuddyPress documentation page for the class is just a holding page (argh!) – https://codex.buddypress.org/developer/class-reference/bp_user_query/

    Does anyone have a basic ‘Hello World’ example they could give me for pulling in a list of users based on a custom profile field?

    I’d really appreciate it.
    Thanks

    @shanebp

    Moderator

    You could use this or study it to write your own:
    https://wordpress.org/plugins/bp-profile-search/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search page to search custom user fields’ is closed to new replies.
Skip to toolbar