{"id":2314,"date":"2026-10-20T08:30:41","date_gmt":"2026-10-20T07:30:41","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/geodirectory-search-faq\/"},"modified":"2026-10-20T09:02:52","modified_gmt":"2026-10-20T08:02:52","slug":"geodirectory-search-faq","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/geodirectory-search-faq\/","title":{"rendered":"GeoDirectory search FAQ"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Answers to common GeoDirectory questions about search. Click a question to open the answer.<\/p>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-accordion accordion mb-3\">\n<div class=\"accordion-item\" id=\"heading-hide-near-field\"><h2 class=\"accordion-header\"><button class=\"accordion-button\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-hide-near-field\" aria-expanded=\"true\" aria-controls=\"collapse-hide-near-field\">How do I hide the Near field in the GeoDirectory search bar?<\/button><\/h2><div class=\"accordion-collapse collapse show\" id=\"collapse-hide-near-field\" aria-labelledby=\"heading-hide-near-field\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">Edit the GD > Search block, widget or shortcode and tick Hide Near Search Input in its Content settings. As a shortcode it looks like this: <code>&#091;&lt;span&gt;&lt;\/span&gt;gd_search hide_near_input=&#039;true&#039;&#093;<\/code>. You can hide the keyword box the same way with Hide Main Search Input.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With the Near field hidden, searches are not limited by distance, which suits a directory that covers a single neighbourhood. When someone does search near a place, the radius is set by Search near radius in GeoDirectory > Settings > General > Search, and Search distances there switches between miles and kilometers.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-post-id-missing-invalid-post-type\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-post-id-missing-invalid-post-type\" aria-expanded=\"false\" aria-controls=\"collapse-post-id-missing-invalid-post-type\">Why do I see &quot;post id is missing, invalid post type&quot; on my search results?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-post-id-missing-invalid-post-type\" aria-labelledby=\"heading-post-id-missing-invalid-post-type\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">That message comes from GeoDirectory blocks such as GD &gt; Post Meta when they are shown outside a listing, so they have no listing to read from. On search results this usually means the GeoDirectory search page is missing, for example because it was moved to the trash, and the results are being shown with the wrong template.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Check the trash under Pages and restore the search page if it&#8217;s there.<\/li>\n\n\n\n<li>Go to GeoDirectory &gt; Settings &gt; General &gt; Pages and make sure Search Page points to that page.<\/li>\n\n\n\n<li>If the page is gone for good, go to GeoDirectory &gt; Status &gt; Tools and run Create default GeoDirectory pages. It only adds pages that are missing.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If you see the message on a normal page, a listing block has been added somewhere outside the GeoDirectory templates. Remove it, or set its Post ID option to a listing.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-search-results-page\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-search-results-page\" aria-expanded=\"false\" aria-controls=\"collapse-search-results-page\">Can I show GeoDirectory search results on my own page?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-search-results-page\" aria-labelledby=\"heading-search-results-page\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">Search results always go to the page set as the Search Page in GeoDirectory &gt; Settings &gt; General &gt; Pages. Results can&#8217;t appear on a different page without custom code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That search page is a normal WordPress page, so you can make it look the same as the rest of your directory. Edit it and add your own text, images or blocks above and below the results. Keep the GD &gt; Loop block on it, as that is what outputs the results.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To change the heading shown on the results page, go to GeoDirectory &gt; Settings &gt; General &gt; Titles &amp; Meta and edit the Title under Search page.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-search-near-me-default\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-search-near-me-default\" aria-expanded=\"false\" aria-controls=\"collapse-search-near-me-default\">Can the GeoDirectory search always search near the visitor&#x27;s location?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-search-near-me-default\" aria-labelledby=\"heading-search-near-me-default\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">There is no setting that forces every search to &#8220;Near: My Location&#8221;. What GeoDirectory does do:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When a visitor shares their location, for example with the GD &gt; Near Me Button block from Location Manager or the My Location option in the near field, the search form carries that location with it.<\/li>\n\n\n\n<li>When results have a location to measure from and no other sort is chosen, they are sorted by distance, nearest first.<\/li>\n\n\n\n<li>You can hide the near field with the Hide Near Search Input option of the GD &gt; Search block.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Making &#8220;near me&#8221; the default for visitors who have not shared their location would need custom JavaScript, because the browser has to ask the visitor for permission first.<\/p>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"accordion-item\" id=\"heading-near-search-fewer-results\"><h2 class=\"accordion-header\"><button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#collapse-near-search-fewer-results\" aria-expanded=\"false\" aria-controls=\"collapse-near-search-fewer-results\">Why does a near me search show fewer listings than the location page?<\/button><\/h2><div class=\"accordion-collapse collapse\" id=\"collapse-near-search-fewer-results\" aria-labelledby=\"heading-near-search-fewer-results\" data-bs-parent=\"\"><div class=\"wp-block-blockstrap-blockstrap-widget-accordion-item accordion-body pb-0\">\n<p class=\"wp-block-paragraph\">The two pages find listings differently. A location page lists listings by the city, region or country saved on each listing. A near search measures the distance from the searched point to each listing&#8217;s map pin, and only returns listings inside the radius.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If a listing is missing from a near search, check:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The listing&#8217;s latitude and longitude. Edit it and look at where the pin sits on the map. A wrong pin can put it outside the radius even though the city is right.<\/li>\n\n\n\n<li>Search near radius in GeoDirectory > Settings > General > Search.<\/li>\n\n\n\n<li>Any distance chosen in the search bar, which narrows the radius further.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">See <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/how-does-the-geodirectory-search-work\/\">How does the GeoDirectory search work<\/a>.<\/p>\n<\/div><\/div><\/div>\n<\/div>\n<script type=\"application\/ld+json\">{\n    \"@context\": \"https:\/\/schema.org\",\n    \"@type\": \"FAQPage\",\n    \"mainEntity\": [\n        {\n            \"@type\": \"Question\",\n            \"name\": \"How do I hide the Near field in the GeoDirectory search bar?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Edit the GD \\u003E Search block, widget or shortcode and tick Hide Near Search Input in its Content settings. As a shortcode it looks like this: [\\u003Cspan\\u003E\\u003C\/span\\u003Egd_search hide_near_input=\\u0027true\\u0027]. You can hide the keyword box the same way with Hide Main Search Input.\\n\\n\\n\\nWith the Near field hidden, searches are not limited by distance, which suits a directory that covers a single neighbourhood. When someone does search near a place, the radius is set by Search near radius in GeoDirectory \\u003E Settings \\u003E General \\u003E Search, and Search distances there switches between miles and kilometers.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Why do I see \\u0022post id is missing, invalid post type\\u0022 on my search results?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"That message comes from GeoDirectory blocks such as GD \\u003E Post Meta when they are shown outside a listing, so they have no listing to read from. On search results this usually means the GeoDirectory search page is missing, for example because it was moved to the trash, and the results are being shown with the wrong template.\\n\\n\\n\\n\\nCheck the trash under Pages and restore the search page if it\\u0027s there.\\n\\n\\n\\nGo to GeoDirectory \\u003E Settings \\u003E General \\u003E Pages and make sure Search Page points to that page.\\n\\n\\n\\nIf the page is gone for good, go to GeoDirectory \\u003E Status \\u003E Tools and run Create default GeoDirectory pages. It only adds pages that are missing.\\n\\n\\n\\n\\nIf you see the message on a normal page, a listing block has been added somewhere outside the GeoDirectory templates. Remove it, or set its Post ID option to a listing.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Can I show GeoDirectory search results on my own page?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"Search results always go to the page set as the Search Page in GeoDirectory \\u003E Settings \\u003E General \\u003E Pages. Results can\\u0027t appear on a different page without custom code.\\n\\n\\n\\nThat search page is a normal WordPress page, so you can make it look the same as the rest of your directory. Edit it and add your own text, images or blocks above and below the results. Keep the GD \\u003E Loop block on it, as that is what outputs the results.\\n\\n\\n\\nTo change the heading shown on the results page, go to GeoDirectory \\u003E Settings \\u003E General \\u003E Titles \\u0026 Meta and edit the Title under Search page.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Can the GeoDirectory search always search near the visitor\\u0027s location?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"There is no setting that forces every search to \\u0022Near: My Location\\u0022. What GeoDirectory does do:\\n\\n\\n\\n\\nWhen a visitor shares their location, for example with the GD \\u003E Near Me Button block from Location Manager or the My Location option in the near field, the search form carries that location with it.\\n\\n\\n\\nWhen results have a location to measure from and no other sort is chosen, they are sorted by distance, nearest first.\\n\\n\\n\\nYou can hide the near field with the Hide Near Search Input option of the GD \\u003E Search block.\\n\\n\\n\\n\\nMaking \\u0022near me\\u0022 the default for visitors who have not shared their location would need custom JavaScript, because the browser has to ask the visitor for permission first.\"\n            }\n        },\n        {\n            \"@type\": \"Question\",\n            \"name\": \"Why does a near me search show fewer listings than the location page?\",\n            \"acceptedAnswer\": {\n                \"@type\": \"Answer\",\n                \"text\": \"The two pages find listings differently. A location page lists listings by the city, region or country saved on each listing. A near search measures the distance from the searched point to each listing\\u0027s map pin, and only returns listings inside the radius.\\n\\n\\n\\nIf a listing is missing from a near search, check:\\n\\n\\n\\n\\nThe listing\\u0027s latitude and longitude. Edit it and look at where the pin sits on the map. A wrong pin can put it outside the radius even though the city is right.\\n\\n\\n\\nSearch near radius in GeoDirectory \\u003E Settings \\u003E General \\u003E Search.\\n\\n\\n\\nAny distance chosen in the search bar, which narrows the radius further.\\n\\n\\n\\n\\nSee How does the GeoDirectory search work.\"\n            }\n        }\n    ]\n}<\/script>","protected":false},"excerpt":{"rendered":"<p>Answers to common GeoDirectory questions about search. Click a question to open the answer.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[211,432],"class_list":["post-2314","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-tips-tricks-more","gd_placecategory-how-tos"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2314","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=2314"}],"version-history":[{"count":3,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2314\/revisions"}],"predecessor-version":[{"id":2967,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2314\/revisions\/2967"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2314"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2314"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}