Skip Navigation

[Resolved] location search is not working with multi select option..

This support ticket is created 5 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 5 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#1178231
multiple_lcation_seleted.png
singel location selected.png

I am trying to: Get the result based on location search

Link to a page where the issue can be seen: hidden link

I expected to see: I need to get result, if i am selecting multiple locations ( either in checkbox or multi select drop down)

Instead, I got: Instead I am forced to select only one location to get the result.

Note: My concern is query filter is not working based on OR operator for location field. I have tried with all the possible options which is provided in view page. Have attached the screen shot with single location selection and multiple location selection... have a note of it...

#1178553

Hi, it looks like you want to create a View that displays results using a distance filter, and you want to allow multiple distance origins. Unfortunately the distance filter is not designed to accept multiple distance origins. It is designed to accept one map center URL parameter, and base its calculations on that value. If you want to extend that filter to allow multiple distance origins, you could use the wpv_filter_query API to programmatically combine the results from multiple Views, each with a single distance origin.
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query