{"id":1092,"date":"2025-10-28T12:10:46","date_gmt":"2025-10-28T12:10:46","guid":{"rendered":"https:\/\/www.wpgmaps.com\/help\/?post_type=docs&#038;p=1092"},"modified":"2025-10-28T12:10:46","modified_gmt":"2025-10-28T12:10:46","password":"","slug":"map-shortcode","status":"publish","type":"docs","link":"https:\/\/www.wpgmaps.com\/help\/docs\/map-shortcode\/","title":{"rendered":"Map Shortcode"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This is the core shortcode used to display your created map anywhere on your site. It is the <strong>foundation<\/strong> for all other map-related modules and features.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All enabled features for a map are automatically included when using this module, whereas when using other shortcodes will enable the feature when a map is present on the same page. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode Example<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;wpgmza id=\"1\"]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode Attributes<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>id <em>(number)<\/em><\/td><td>The <strong>Map ID<\/strong> you would like to show<\/td><\/tr><tr><td>zoom <em>(number)<\/em><\/td><td>The starting zoom level<\/td><\/tr><tr><td>width <em>(number)<\/em><\/td><td><strong>Width<\/strong> of the map container<\/td><\/tr><tr><td>height <em>(number)<\/em><\/td><td><strong>Height<\/strong> of the map container<\/td><\/tr><tr><td>marker <em>(number)<\/em><\/td><td>The <strong>Marker ID <\/strong>you would like to focus on<\/td><\/tr><tr><td>classname <em>(string)<\/em><\/td><td><strong>CSS Class<\/strong> to add to map container<\/td><\/tr><tr><td>mashup <em>(bool)<\/em><\/td><td><strong>Enable<\/strong> map mashup (true or false)<\/td><\/tr><tr><td>parent_id <em>(number)<\/em><\/td><td>Mashup <strong>Parent Map ID<\/strong><\/td><\/tr><tr><td>mashup_ids (numbers)<\/td><td><strong>Map ID&#8217;s <\/strong>separated by comma (,)<\/td><\/tr><tr><td>cat <em>(number)<\/em><\/td><td>Starting map <strong>Category ID<\/strong><\/td><\/tr><tr><td>lat <em>(number)<\/em><\/td><td>Stating map <strong>Latitude<\/strong><\/td><\/tr><tr><td>lng <em>(number)<\/em><\/td><td>Stating map <strong>Longitude<\/strong><\/td><\/tr><tr><td>mark_center<strong>\u00a0<\/strong>(bool)<\/td><td>Place <strong>marker <\/strong>at map center (true or false)<\/td><\/tr><tr><td>enable_category\u00a0(bool)<\/td><td>Enable <strong>category filter<\/strong> (true or false)<\/td><\/tr><tr><td>directions_from\u00a0(string)<\/td><td>Default directions starting point<\/td><\/tr><tr><td>directions_to\u00a0(string)<\/td><td>Default directions ending point<\/td><\/tr><tr><td>directions_waypoints\u00a0(strings|latlngs)<\/td><td>Direction waypoints, separated by comma (,)<\/td><\/tr><tr><td>directions_auto\u00a0(bool)<\/td><td>Automatically <strong>draw directions <\/strong>(true or false)<\/td><\/tr><tr><td>type (string) (Google Maps Only)<\/td><td>Default map style<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This is the core shortcode used to display your created map anywhere on your site. It is the foundation for all other map-related modules and features. All enabled features for a map are automatically included when using this module, whereas when using other shortcodes will enable the feature when a map is present on the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[29],"doc_tag":[],"class_list":["post-1092","docs","type-docs","status-publish","hentry","doc_category-shortcodes"],"year_month":"2026-09","word_count":200,"total_views":"3","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"wpgmaps","author_nicename":"wpgmaps","author_url":"https:\/\/www.wpgmaps.com\/help\/author\/wpgmaps\/"},"doc_category_info":[{"term_name":"Shortcodes","term_url":"https:\/\/www.wpgmaps.com\/help\/docs-category\/shortcodes\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/docs\/1092","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/comments?post=1092"}],"version-history":[{"count":2,"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/docs\/1092\/revisions"}],"predecessor-version":[{"id":1094,"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/docs\/1092\/revisions\/1094"}],"wp:attachment":[{"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/media?parent=1092"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/doc_category?post=1092"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.wpgmaps.com\/help\/wp-json\/wp\/v2\/doc_tag?post=1092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}