Hi emptypack,
That’s an interesting feature, but unfortunately it’s not yet available in BP Profile Search. Sorry!
Hello Andrea,
I’m interested too, is there a way (by modifying functions.php or core file) to eliminate those results from selection, which one doesn’t have any member in it. For example, members can select which language they speak, so if there is a selection from 40 languages and members just select 5 of them, all 40lang are displayed in the search filter and it’s bad with UX because visitors keep selecting language without a member.
Hello netreneris,
If you add this code to your bp-custom.php or functions.php, you can select which options to display in the search field:
add_action ('bps_field_before_search_form', 'set_options');
function set_options ($f)
{
if ($f->code != 'field_123') return;
$f->options = array
(
'English' => 'English',
'Spanish' => 'Spanish',
'French' => 'French',
);
}
Replace 123 with the actual field ID of your ‘Languages’ field, and change the language list as needed.
Remember to update the language list when your members add a new language to their profiles.