The ‘Live demo’ button doesn’t work by the way.
Also, is this optimized for speed? I mean, if I have 100k locations, will this solution cause my website to crash? I use the Litespeed cache plugin but still maybe there is something I should know…
Hello @artur0111,
I just replied to your support ticket. Here is my reply:
Yes, what you described is possible using the Nearby Locations extension. But you first need to make sure that all of your posts have a location in GEO my WP’s database.
So when you import the locations from the Excel file, make sure to first import the latitude, longitude, and any address fields into custom fields of your choice ( each into its own custom field ). Once importing is done, use GEO my WP’s importer tool ( Dashboard -> GEO my WP -> Export / Import ) to import the location data from the custom fields into GEO my WP.
Also, is this optimized for speed? I mean, if I have 100k locations, will this solution cause my website to crash? I use the Litespeed cache plugin but still maybe there is something I should know…
GEO my WP uses indexing in its database table and an internal caching system that should help with speed. With that being said, I haven’t had a chance to test GEO my WP on a site with 100k locations ( or at least not that I remember ). But I did test it on sites that have ~50k locations. The search query might get slower, but didn’t crash.
Let me know if you have additional questions.
Hi Eyal, your plugin is awesome and exactly what I was looking for. Thanks!
I’m currently reading the shortcode usage page: https://docs.geomywp.com/article/179-nearby-locations-shortcode-usage
Is it possible to filter the nearest locations by the post’s category? For example, can we make it so that for restaurants, we only see other restaurants nearby and not car repair shops?
Hi @artur0111,
Thank you for your purchase and kind feedback :).
Yes, you can include specific taxonomy terms by passing the terms ID to the include_terms shortcode attribute ( ex. [gmw_nearby_locations include_terms=”1,2,3″] ).
Let me know if that works.
Hi Eyal, thank you, it should work. Is there any way to filter just by the current category? Having dozens of categories, it would be much more convenient to have a universal shortcode instead of creating a unique one for each category.