• Is there a way to default the search to miles rather than km? I’m in the United States where most people will want to search by miles.

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

    (@dontdream)

    Hi Kyle,

    You can add this code to your?bp-custom.php?file:

    add_action ('bps_field_before_search_form', 'set_my_defaults');
    function set_my_defaults ($f)
    {
    	if ($f->display == 'distance')
    	{
    		$f->value['units'] = 'miles';
    	}
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Default to Miles’ is closed to new replies.