{"id":2749,"date":"2026-10-20T08:36:22","date_gmt":"2026-10-20T07:36:22","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-to-show-listings-near-the-visitor-by-default\/"},"modified":"2026-10-20T08:39:00","modified_gmt":"2026-10-20T07:39:00","slug":"how-to-show-listings-near-the-visitor-by-default","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/location-manager\/how-to-show-listings-near-the-visitor-by-default\/","title":{"rendered":"How to show listings near the visitor by default"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">GeoDirectory has no setting that ticks &#8220;near me&#8221; in the search automatically. A browser only shares a visitor&#8217;s exact location after they agree to it, so the visitor has to take one step. You can make that step a single click, or show nearby listings straight away using an approximate location.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Add a Near Me button<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">With Location Manager active, add the GD &gt; Near Me Button block or widget beside your search bar or at the top of the home page. When a visitor clicks it, the browser asks to share their location, and they see the listings around them. Options are in <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/location-manager\/gd-near-me-button\/\">GD &gt; Near Me Button<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Show nearby listings without a click<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GD &gt; Listings has a &#8220;Filter Nearby User\/Visitor GPS&#8221; option under its Filters settings. With it ticked, the block shows listings near the visitor from a lookup of their IP address. There is no permission prompt, but an IP lookup is less precise than the location a browser shares.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">&#091;gd_listings post_type=&quot;gd_place&quot; nearby_gps=&quot;1&quot; post_limit=&quot;10&quot;&#093;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">It only works for post types that use addresses.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Change the wording of the near me option: <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/code-snippets\/how-to-change-default-text-for-near-me-search\/\">How to Change Default Text for Near Me Search?<\/a>.<\/li>\n\n\n\n<li>How location search works: <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/how-does-the-geodirectory-search-work\/\">How does the GeoDirectory Search work<\/a>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>GeoDirectory has no setting that ticks &#8220;near me&#8221; in the search automatically. A browser only shares a visitor&#8217;s exact location after they agree to it, so the visitor has to take one step. You can make that step a single click, or show nearby listings straight away using an approximate location. Add a 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-2749","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\/2749","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=2749"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2749\/revisions"}],"predecessor-version":[{"id":2859,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2749\/revisions\/2859"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2749"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2749"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}