{"id":2511,"date":"2026-10-20T08:34:11","date_gmt":"2026-10-20T07:34:11","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/show-listings-near-me\/"},"modified":"2026-10-20T08:39:58","modified_gmt":"2026-10-20T07:39:58","slug":"show-listings-near-me","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/location-manager\/show-listings-near-me\/","title":{"rendered":"How to show listings near the visitor&#8217;s location"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">GeoDirectory shows listings near a visitor once they share their location. The easiest way to offer this is the Near Me button from the Location Manager add-on.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Add a Near Me button<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install and activate Location Manager.<\/li>\n\n\n\n<li>Add the GD &gt; Near Me Button block where visitors will see it, such as the header, the home page or above a map. You can also use the widget or the <code>&#091;gd_location_near_me&#093;<\/code> shortcode.<\/li>\n\n\n\n<li>Choose how it looks in the block settings: badge, pill, button link or button, plus colour and text.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">When a visitor clicks it, the browser asks for permission to share their location. If they allow it, GeoDirectory opens the near me page and lists the closest listings first, sorted by distance. Add a GD &gt; Map block to that page if you want the results on a map.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Set how far &#8220;near&#8221; reaches<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GeoDirectory &gt; Settings &gt; General &gt; Search &gt; Search near radius sets the default distance, in your distance units. The default is 7.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">If it does not work<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Your site must use HTTPS. Browsers only allow location sharing on secure pages.<\/li>\n\n\n\n<li>The visitor must allow location access. If they blocked it once, they have to allow it again in the browser&#8217;s site settings.<\/li>\n\n\n\n<li>Listings that use the Private Address field are left out of near me results for visitors.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Asking for the location on the first visit<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Older versions could ask every new visitor for their location as soon as the site loaded and redirect them. Current versions do not do this. Put the Near Me button somewhere visible instead. <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/location-manager\/gd-near-me-button\/\">GD &gt; Near Me Button<\/a> covers every setting.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GeoDirectory shows listings near a visitor once they share their location. The easiest way to offer this is the Near Me button from the Location Manager add-on. Add a Near Me button When a visitor clicks it, the browser asks for permission to share their location. If they allow it, GeoDirectory opens the near me [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[213,425],"class_list":["post-2511","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-extensions-features","gd_placecategory-location-manager"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=2511"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2511\/revisions"}],"predecessor-version":[{"id":2619,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2511\/revisions\/2619"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2511"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2511"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}