Near Me not returning nearest listings

This topic contains 10 replies, has 4 voices, and was last updated by  Stiofan O’Connor 4 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #493098

    spectrum
    Lifetime Member
    Post count: 78

    Hi

    I tested the v2 Beta about 6 months ago with some of my own sample listing.

    It worked nicely and when I used the Near Me button it geolocated OK and returned my closest listing ordered by distance.

    Other commitments took me away from this for about 6 months.

    I came back to it yesterday and updated all plugins.

    Other than resaving permalinks to fix 404 errors everything was OK.

    However I’ve noticed when I use the Near Me button now it geolocated OK and pinpoints listing on the map, but the listing shown below the map are not the ones nearby. They seem to be the most recent posts?

    #493099

    spectrum
    Lifetime Member
    Post count: 78
    This reply has been marked as private.
    #493122

    Paolo
    Site Admin
    Post count: 31206

    I tested your website and can’t seem to find the problem. I’ve alerted the developers who will have a look asap. Please also provide FTP credentials in case they need it.

    Thanks for your patience

    #493125

    spectrum
    Lifetime Member
    Post count: 78
    This reply has been marked as private.
    #493126

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
    #493128

    spectrum
    Lifetime Member
    Post count: 78
    This reply has been marked as private.
    #493136

    Alex Rollin
    Moderator
    Post count: 27815

    Please check now.

    Unfortunately when you installed V2 the default content for the location page did not contain the GD Listings element with the location filter enabled.

    This has been fixed in recent versions and is available in the default content on the pages setting at GD – Settings – Pages

    Here is the new default content:

    
    
    
    [gd_notifications]
    [gd_categories]
    [gd_map map_type='directory' width=100% height=300 search_filter=1 cat_filter=1 post_type_filter=1]
    [gd_search]
    [gd_listings post_limit=10 add_location_filter='1']
    

    More about the location page
    https://wpgeodirectory.com/docs-v2/templates/location/

    I have updated the page with the following settings:

    
    
    <!-- wp:html -->
    [gd_categories]
    [gd_map map_type='directory' width=100% height=300 search_filter=1 cat_filter=1]
    [gd_search]
    
    <!-- /wp:html -->
    
    <!-- wp:geodirectory/geodir-widget-listings {"show_advanced":true,"title":"Updated GD Listings with Location Filter Enabled"} -->
    <div class="wp-block-geodirectory-geodir-widget-listings">[gd_listings title='Updated GD Listings with Location Filter Enabled'  post_type='gd_place'  category=''  related_to=''  tags=''  post_author=''  sort_by=''  title_tag='h3'  layout='h3'  post_limit='5'  post_ids=''  add_location_filter='true'  show_featured_only='false'  show_special_only='false'  with_pics_only='false'  with_videos_only='false'  show_favorites_only='false'  favorites_by_user=''  use_viewing_post_type='false'  hide_if_empty='false'  view_all_link='true'  with_pagination='false'  top_pagination='false'  bottom_pagination='true'  pagination_info=''  country=''  region=''  city=''  neighbourhood='' ]</div>
    <!-- /wp:geodirectory/geodir-widget-listings -->
    
    #493511

    spectrum
    Lifetime Member
    Post count: 78

    Thanks Alex, that seem to be working now.

    I’ve noticed thought that the results displayed on pressing the Near Me button are now not ordered by distance from my geolocated point. I’m sure they used to be?

    #493579

    Alex Rollin
    Moderator
    Post count: 27815

    We have added a task to work on sort by distance and showing post distance on the near me page in the future.

    #495349

    spectrum
    Lifetime Member
    Post count: 78

    Alex

    When I edit the Location page, there is a message that states:

    Your site doesn’t include support for the “geodirectory/geodir-widget-listings” block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.

    Is this something I need to be concerned about?

    Would a clean install of v2 help with these issues?

    Thanks

    #495422

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Blocks can sometimes become corrupt if new setting are added, they will continue to work as normal but the settings screen might not until you convert or replace it, either will work.

    Thanks,

    Stiofan

Viewing 11 posts - 1 through 11 (of 11 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket