• Hello!
    I have a website with directories, listings. For example, “Mama Mia – Italian Restaurant”, where I display all the information about this venue. So I have thousands of these types of listings. For each listing, I should somehow display relevant listings. I have a database in Excel containing all the coordinates of each place. So I don’t know how to make this block in WordPress – the block that shows relevant places (posts on my website) based on coordinates AND category. By the way, I import Excel to WP via WP All Import.
    Basically, I need something like this: https://www.allinlondon.co.uk/directory/nail-salons/137110-nail-works
    They have a block “The Nearest Alternatives”.
    So is it possible to do with your plugin https://geomywp.com/extensions/nearby-locations/? Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter artur0111

    (@artur0111)

    The ‘Live demo’ button doesn’t work by the way.

    Thread Starter artur0111

    (@artur0111)

    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…

    Plugin Author Eyal Fitoussi

    (@ninjew)

    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.

    Plugin Author Eyal Fitoussi

    (@ninjew)

    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.

    Thread Starter artur0111

    (@artur0111)

    Thanks, I’ll go buy it!

    Thread Starter artur0111

    (@artur0111)

    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?

    Plugin Author Eyal Fitoussi

    (@ninjew)

    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.

    Thread Starter artur0111

    (@artur0111)

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘The Nearest Alternatives block’ is closed to new replies.