{"id":2486,"date":"2026-10-20T08:34:08","date_gmt":"2026-10-20T07:34:08","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/browse-listings-by-country-region-city\/"},"modified":"2026-10-20T08:38:59","modified_gmt":"2026-10-20T07:38:59","slug":"browse-listings-by-country-region-city","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/location-manager\/browse-listings-by-country-region-city\/","title":{"rendered":"How to let visitors browse listings by country, region and city"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">With the Location Manager add-on, GeoDirectory builds a page for every country, region and city that has listings. Visitors can pick a country, then a region, then a city, and see only the listings there. You don&#8217;t need custom queries for this.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Show a list of locations to pick from<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The GD &gt; Locations widget (shortcode <code>&#091;gd_locations&#093;<\/code>) lists your locations with links to their pages. Its &#8220;Show Locations&#8221; setting chooses the level:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>&#091;gd_locations what=&quot;country&quot;&#093;<\/code> lists countries<\/li>\n\n\n\n<li><code>&#091;gd_locations what=&quot;region&quot;&#093;<\/code> lists regions<\/li>\n\n\n\n<li><code>&#091;gd_locations what=&quot;city&quot;&#093;<\/code> lists cities<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">By default the list is filtered by the current location. So a regions list placed on your location page shows the regions of the country the visitor is viewing, and a cities list shows the cities of the current region. Set &#8220;Output type&#8221; to Image Grid if you want pictures instead of a plain list. All options are in <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/location-manager\/gd-locations\/\">GD &gt; Locations<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Build the pages<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to GeoDirectory &gt; Settings &gt; General &gt; Pages and edit the page set as Location page.<\/li>\n\n\n\n<li>Add GD &gt; Locations blocks for the levels you want, along with GD &gt; Categories and GD &gt; Listings if you want categories and listings for the current location.<\/li>\n\n\n\n<li>Link to the location page from your menu, or add country links to your home page with <code>&#091;gd_locations what=&quot;country&quot;&#093;<\/code>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Once a visitor is in a location, category links point to that category inside the same location, so they keep seeing local listings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Let visitors switch location from anywhere<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The location switcher lets people pick a country, region or city from a dropdown in your menu or a sidebar. See <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/location-manager\/how-to-add-the-location-switcher-to-menus-and-widgets\/\">how to add the location switcher to menus and widgets<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are setting up Location Manager for the first time, start with the <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/location-manager\/location-manager-setup-guide\/\">Location Manager setup guide<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the Location Manager add-on, GeoDirectory builds a page for every country, region and city that has listings. Visitors can pick a country, then a region, then a city, and see only the listings there. You don&#8217;t need custom queries for this. Show a list of locations to pick from The GD &gt; Locations widget [&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-2486","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\/2486","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=2486"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2486\/revisions"}],"predecessor-version":[{"id":2564,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2486\/revisions\/2564"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2486"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2486"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}