This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: AjaxSearchPro Events Manager. Double location towns

Home Forums Product Support Forums Ajax Search Pro for WordPress Support AjaxSearchPro Events Manager. Double location towns Reply To: AjaxSearchPro Events Manager. Double location towns

#23061
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

Well, if I understand correctly, you have duplicates within the location filter.
That code looks perfect, maybe filtering the $location_ids though an array_unique function will do the trick. So try replacing this line:

$locations = EM_Locations::get( array('location'=>$location_ids) );

with:

$locations = EM_Locations::get( array('location'=>array_unique($location_ids)) );

It may do the trick.