filter using category

BP Profile Search › filter using category

  • Author
    Post
  • #9908 Reply
    Maria
    Guest

    Hi,

    I want to filter the results using a category. Is it possible? I have about 10 different categories and the form is in a page that can be accessed by user that belong to a category, creating a field to select a category wouldn’t be an option.

    I also want to know if it is possible to add a message saying that the search returned no results if that is the case.

    Thank you!

    #9910 Reply
    andrea
    Plugin Author

    Hi Maria,

    What is exactly your user category? Is it the BuddyPress member type, or a WordPress role, or are you using a specific plugin for user categories?

    #9911 Reply
    Maria
    Guest

    Hi Andrea,

    I’m using BP Member Types

    #9913 Reply
    andrea
    Plugin Author

    Hello Maria,

    So you’re using the BuddyPress member type, the technical name for your user category.

    If you want to add the member type to one of your search forms, when you click on the Field drop-down menu go to the bottom and select Member type under User taxonomies.

    Please let me know how that works for you!

    #9917 Reply
    Maria
    Guest

    Hi Andrea,
    Thanks or your prompt answer.
    What I want is to filter the directory according a user category.

    [bps_directory field_35=”Male” field_56=”Married”], here you filter a directory using different fields. I want to filter the directory using a category. Is it possible?

    #9919 Reply
    andrea
    Plugin Author

    Hi Maria,

    Sure it is:

    [bps_directory field_35="Male" field_56="Married" bp_member_type="whatever"]

    Replace whatever with the singular name of your user category.

    #9920 Reply
    Maria
    Guest

    Thank you very much, is it also possible to add a saying that the search returned no results if that is the case?

    #9921 Reply
    andrea
    Plugin Author

    That’s a built-in feature. Anyway if something doesn’t work for you as expected, just let me know and I’ll try to help.

    #9923 Reply
    Maria
    Guest

    The feature is not working for me… What can I do?

    #9926 Reply
    andrea
    Plugin Author

    May I see your site? You can use my Contact page if you don’t want to share it publicly.

Reply to: filter using category
My Information