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-
AuthorPosts
-
June 15, 2019 at 9:50 am #493098
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?
June 15, 2019 at 9:52 am #493099This reply has been marked as private.June 15, 2019 at 5:54 pm #493122I 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
June 15, 2019 at 6:12 pm #493125This reply has been marked as private.June 15, 2019 at 6:16 pm #493126This reply has been marked as private.June 15, 2019 at 6:36 pm #493128This reply has been marked as private.June 15, 2019 at 9:06 pm #493136Please 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 -->
June 18, 2019 at 12:49 am #493511Thanks 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?
June 18, 2019 at 10:29 am #493579We have added a task to work on sort by distance and showing post distance on the near me page in the future.
June 28, 2019 at 6:00 pm #495349Alex
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
June 29, 2019 at 12:19 pm #495422Blocks 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
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket