{"id":2352,"date":"2026-10-20T08:32:18","date_gmt":"2026-10-20T07:32:18","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/show-subcategory-icons-on-the-map\/"},"modified":"2026-10-20T08:40:20","modified_gmt":"2026-10-20T07:40:20","slug":"show-subcategory-icons-on-the-map","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/show-subcategory-icons-on-the-map\/","title":{"rendered":"How to show subcategory icons on the GeoDirectory map"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Each listing has one marker on the GeoDirectory map, and that marker uses the Map Icon of the listing&#8217;s default category. If a listing is in a parent category and one of its subcategories, and the parent is set as the default category, the map shows the parent&#8217;s icon even when the subcategory has its own.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Make the subcategory the default category<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Edit the listing, either in the backend or on the frontend add listing form.<\/li>\n\n\n\n<li>In the category field, select the subcategory. You can keep the parent selected as well.<\/li>\n\n\n\n<li>In the Default Category dropdown, choose the subcategory.<\/li>\n\n\n\n<li>Save the listing. Its marker now uses the subcategory&#8217;s Map Icon.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The Default Category dropdown only appears when the category field allows more than one category, which means its Category display type is multiselect or checkbox. You can change this at Places > Settings > Custom Fields by editing the Category field. When the field only allows one category, the category the user picks is the default.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">More detail on what the field controls is in <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/what-is-the-default-category-field-for\/\">What is the Default Category field for?<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Check the subcategory has a Map Icon<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Go to Places > Categories, edit the subcategory and check that the Map Icon field has an image. A category without a Map Icon does not borrow its parent&#8217;s icon. The marker falls back to the Default marker icon set at GeoDirectory > Settings > General (click Show Advanced to see it).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For many listings, exporting them at GeoDirectory > Settings > Import\/Export, setting the default_category column to the subcategory ID and importing the file again is quicker than editing each one. See <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/how-to-import-export-data\/\">How to Import\/Export Data?<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Each listing has one marker on the GeoDirectory map, and that marker uses the Map Icon of the listing&#8217;s default category. If a listing is in a parent category and one of its subcategories, and the parent is set as the default category, the map shows the parent&#8217;s icon even when the subcategory has its [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[421,213],"class_list":["post-2352","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-core-features","gd_placecategory-extensions-features"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2352","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=2352"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2352\/revisions"}],"predecessor-version":[{"id":2413,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2352\/revisions\/2413"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2352"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2352"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}