Skip Navigation

[Resolved] Search Does Not Work After Hitting "Search"

This support ticket is created 6 years, 6 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 14 replies, has 2 voices.

Last updated by Shane 6 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#914906
screencapture-qbws-net-dirtyblinds-wp-admin-admin-php-2018-06-18-13_32_18.png

I am trying to: Create a custom listing directory and allow users to Show Results with [xx] mi of [their location, or entered address].

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

I expected to see: A list of locations (which appears) and a functional search by address (not working).

Instead, I got:
On the initial page you see all the locations currently in the system. That's all fine, but if you choose say "5" mi and enter "14221" into the location box (which is the exact address zip code of one of the locations) Still all results are found (they are not within 5 mi of each other). As a side note, the Category boxes, seem to be working properly, its just the distance field.

I have setup as per the Map guide, omitting the map from the results as we don't care to have a map displayed. I have made sure the "Manual" refresh options are chosen along with matching the URL parameters, and I can also see the URL parameters being set in the URL, however it does not seem to be "reading" that info properly.

Any help would be greatly appreciated as I'm stuck right now without any idea where to turn with it.

#914935

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Marky,

Thank you for contacting our support forum.

Unfortunately i'm not able to test the distance as i'm sure that none of those listings are close to me 🙁

However when i do set a distance, i get no results found which is normal in my opinion.

Thanks,
Shane

#914944

Hi Shane, you should be able to enter "14221" manually instead of using the "Use my location" and it should show you the 1 result (maybe 2) regardless of your actual location. (Unless I am misunderstanding something). When you do that it is not working, which is what prompted my thread. I'm not really sure what else to look at. I have read over the pages about adding a map and adding custom search and neither have clued me on something I'm missing.

#914989

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mark,

Whats the exact address because 14221 is too general.

Thanks,
Shane

#915254

Shane,

Let's take a step back. So I've entered the search bar at the top as a "map" field. So ideally, and the way I understood it should be able to work, is any location entered in there should be pulled from Google Maps and searched whether a landmark, an address, a state, a zip code, etc. So you could enter 14221 or "875 Hopkins Rd, Williamsville, NY 14221" and it should have nearly the same results I would think? Perhaps I am misunderstanding and that is not how the search works at all. Although, even when entering the exact address I just tested and still did not get the proper results.

What also might be helpful is these are the guides I was following:
https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/
https://toolset.com/documentation/user-guides/front-page-filters/

#915375

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mark,

I did the search with the address and it works fine for me and filters.

This is the results that were generated hidden link

Thanks,
Shane

#915388

I don't believe all of those locations are withing 10 mi of each other, but they certainly are not within 2 mi of each other. If you change the radius to 2 it does not change the results. If you change the location to 200mi it has the same results but there is supposed to be another listing that shows up. It does not.

It is certainly not working or at least not working properly unfortunately.

#915444

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mark,

Actually the distance isn't calculated by road distance, rather by radius. Even though by road it might be more in mileage this just means that the location is still within that 10 mile radius.

What is the location that is suppose to show up as this is something that is powered by google maps and I would like to check this.

Thanks,
Shane

#915450

Thank you. Radius is exactly what we would like, but still that is not working either.

All the locations I have entered show up on the "Blind Listings" page hidden link along with their addresses.

They are all random locations and they are not that close to each other.

#915859

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mark,

I need 1 of the address that should be displayed when the search is done with 875 Hopkins Rd, Williamsville, NY 14221

Within 100 miles. I need to test it and then check it with google maps to see what happens because I think the search is working as intended.

Thanks,
Shane

#915999

Shane,

I think all of the addresses may be within 100 miles of each other. But if you drop down to 5 or 10, the addresses of

123 Hopkins Rd
Williamsville, NY 14221

and

17 Main Street
Hamburg, NY 14075

Should be two addresses on fairly opposite ends of the spectrum.

Here I did something different, I changed the Query Filter to "200 mi" so now you can again see the issue for certain. If you type in a radius of "5" and use address of "875 Hopkins Rd, Buffalo, NY, USA" all results still show even though all of those addresses are not within 5 mi of each other. I don't know if you guys have a physical office address but if you would be so kind as to give an address of something near you, I'll enter that as a location and my guess is that it will show up as well. Even if the search should only be showing "5mi" radius.

It's like the radius is not being read correctly from the URL even though they are matching.

Attached you will find my revised View with the query filter changed.

#916030

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Marky,

Would you mind providing me with admin access to the website so that I can check on this for you ?

Thanks,
Shane

#916052

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mark,

I did a check of these 2 addresses.

123 Hopkins Rd
Williamsville, NY 14221

and

17 Main Street
Hamburg, NY 14075

They are actually within 40 miles of each other. If you set the filter to do this then should see that it will show up. I just tested this exact case and it works.

Thanks,
Shane

#917167

Set it to 2mi and see that it does not update and they are not 2 miled radius of each other

#917523

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Mark,

I'm not understanding as the search works fine.

I'm really not understanding here as these 2 addresses

123 Hopkins Rd
Williamsville, NY 14221

and

17 Main Street
Hamburg, NY 14075

Are not within 2 miles of each other. If you place both on google maps hidden link

You will see the distance between them is around 30+ miles.

Thanks,
Shane