Support » Plugin: BP Profile Search » Match profiles

  • Resolved einatecadmin

    (@einatecadmin)


    Hello
    I have a webpage with your plugin and i have a question. I have a form search with several options, like: City or Country, type of member (writer or reader), literatyry tendencies, personal afitions, etc. So when i chose for example Madrid, reader and Solidady support, the only it matches is with the city (Madrid in this case) and the other people with Solidary Support tendency doest show, how can i do to make to match with any field and not only the city in this case.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hello einatecadmin,

    By default, BP Profile Search matches all the search conditions, e.g. if ten users are Writers and only one of them lives in Madrid, when you search for Writers living in Madrid you find one search result only.

    If you wish to find users who are Writers, or live in Madrid, or both, you can add this code to your bp-custom.php:

    add_filter ('bps_match_all', '__return_false');

    Thread Starter einatecadmin

    (@einatecadmin)

    Hi Andrea
    Thanks for your reply, but Im looking in Bp-profile-search folder and there isn’t any file with this name bp-custom. I can only see this

    bps-admin
    bps-directory
    bps-external
    bps-field
    bps-form
    bps-help
    bpd-main
    bps-request
    bps-search
    bps-start
    bps-template
    bps-widget
    bps-xprofile

    bps-details
    bps-filters
    bps-form-default

    Thanks

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi einatecadmin,

    bp-custom.php is a BuddyPress file, if you don’t have it you can create it under wp-content/plugins.

    See https://codex.buddypress.org/themes/bp-custom-php/ for details.

    Thread Starter einatecadmin

    (@einatecadmin)

    Hi Andrea

    Oh yes i didn´t had that file, i have to creat it.
    Thank you so much it works

    Plugin Author Andrea Tarantini

    (@dontdream)

    Great, you’re welcome!

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