{"id":886,"date":"2025-03-24T14:27:56","date_gmt":"2025-03-24T14:27:56","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/showing-filtered-list-of-listings-in-a-special-map\/"},"modified":"2025-04-03T15:24:17","modified_gmt":"2025-04-03T14:24:17","slug":"showing-filtered-list-of-listings-in-a-special-map","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/extensions-features\/showing-filtered-list-of-listings-in-a-special-map\/","title":{"rendered":"Showing Filtered List of Listings in a Special Map"},"content":{"rendered":"\n<p>GeoDirectory makes it possible to show a map of a select, filtered group of listings. Follow these instructions to set up a map filtered for tags.<\/p>\n\n\n\n<p>To create the map you will need to use a shortcode. Here is an example:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks mb-3\"><code class=\"language-\">&#091;gd_map width=&quot;100%&quot; height=&quot;425px&quot; maptype=&quot;ROADMAP&quot; zoom=&quot;12&quot; map_type=&quot;archive&quot; post_settings=&quot;1&quot; tags=&quot;.geodir-listings&quot;&#093;<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-\">&#091;gd_listings title=&quot;test special title&quot; sort_by=&quot;az&quot; layout=&quot;4&quot; tags=&quot;special-map&quot;&#093;<\/code><\/pre>\n\n\n\n<p>What makes this shortcode special is the param tags=&#8221;. This is a custom param that you will need to add to the shortcode.<\/p>\n\n\n\n<p>The value is the class of the GD Listings widget on the page. To find the class for your page you will need to check the code of the page and find the wrapper class. It will probably be .geodir-listings if it is the only one on the page or may have an ID added like .geodir-listings-24hkh34. It may also be an ID like&nbsp;tags=&#8221;#gd_listings-2&#8243;<\/p>\n\n\n\n<p>Once you find the class, you then add it to the map shortcode, and save your page.<\/p>\n\n\n\n<p>Step by Step<\/p>\n\n\n\n<p>Visit listings in a single CPT like Places and tag them with &#8216;special-map&#8217;. Save the listings.<\/p>\n\n\n\n<p>Create a new page, add a title and save the page<\/p>\n\n\n\n<p>Edit the page add the shortcodes above for the GD Map and GD Listings to the page. Adjust the CPT and class. Save the page.<\/p>\n\n\n\n<p>Save the page and view it.<\/p>\n\n\n\n<p>Inspect the page and look for the wrapper on the GD Listings shortcode, then copy the class to your clipboard. Go back to the edit page and paste the class to the page.<\/p>\n\n\n\n<p>The map should now display the listings shown in the GD Listings list.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GeoDirectory makes it possible to show a map of a select, filtered group of listings. Follow these instructions to set up a map filtered for tags. To create the map you will need to use a shortcode. Here is an example: What makes this shortcode special is the param tags=&#8221;. This is a custom param [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[213,2],"class_list":["post-886","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-extensions-features","gd_placecategory-uncategorized"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/886","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=886"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/886\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=886"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=886"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}