when I add the distance filter no results are shown anymore.
Without the map filter everything works properly. Other filters too. But as soon as I add the distance filter, all results disappear.
Link:
hidden link
If you remove the distance filter, you will see the results
Hi Rob,
Thank you for contacting us and I'd be happy to assist.
I've performed some tests with a similar view and the distance filter, but couldn't reproduce this on my test website.
It seems something specific to your website is involved and I'll recommend making a complete backup copy of the website and then testing this again, with all other non-Toolset plugins and custom code removed/disabled.
To rule out any code conflict from the theme, you can also temporarily switch to a default theme like Twenty Nineteen.
If the view shows the results correctly, you can start adding back the removed items, one-by-one.
If the issue still persists, you're welcome to share a clone/snapshot of your website for further investigation.
https://toolset.com/faq/provide-supporters-copy-site/
Please let me know how it goes and your next reply will be private.
regards,
Waqar
Hi Rob,
Thank you for sharing the duplicator package and I was able to successfully deploy it on my own server.
I'll be performing some tests on this clone and will share my findings, as soon as this testing completes.
Thank you for your patience.
regards,
Waqar
Hi Rob,
Thank you for waiting.
During troubleshooting on your website's clone, I noticed that the location information wasn't saved correctly in the "Postcode + woonplaats" custom field for the existing posts.
When I added some new test posts in the "Vraagouders" post type, they showed correctly in the view. Then I opened the edit screen for each existing "vraagouders" post and clicked the "update" button, then they all started showing correctly in the view.
( clicking update button re-saved the data for all custom fields including the location field "Postcode + woonplaats" )
You're welcome to repeat the same on your website too and let me know if this gets fixed for the new and the existing posts.
regards,
Waqar
Hello, thank you for your answer.
unfortunately the problem is not solved yet. I have saved all posts again, but the results are still not shown. See:
hidden link
Hi Rob,
Thanks for the update and sorry to learn that the issue still persists.
If you'll check the status of the Google Maps API key used on your website, from Toolset -> Settings -> Maps ( screenshot: hidden link ), it shows the following error:
REQUEST_DENIED - API keys with referer restrictions cannot be used with this API.
Please go to your Google Map API key settings ( at hidden link ) and set the "Application restrictions" option to "None".
Once, your API key starts showing the message "Google API seems to be configured properly." in Toolset Maps settings, it will be a confirmation that it is ready to use with the current website.
After that please save/update the existing "vraagouders" posts again and then check the view's output.
regards,
Waqar