{"id":113,"date":"2023-10-06T15:19:24","date_gmt":"2023-10-06T15:19:24","guid":{"rendered":"https:\/\/themeperch.net\/plugin\/control-locations\/?p=113"},"modified":"2023-10-06T15:19:24","modified_gmt":"2023-10-06T15:19:24","slug":"shortcode-reference","status":"publish","type":"post","link":"https:\/\/themeperch.net\/plugin\/control-locations\/blog\/shortcode-reference\/","title":{"rendered":"Shortcode Reference"},"content":{"rendered":"\n<p><strong>Shortcode:&nbsp;<\/strong><code>[<code>control-locations-map<\/code>]<\/code> <\/p>\n\n\n\n<p>Go to  Control Locations  &gt; Settings &gt; <strong>Shortcode<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Attributes<\/th><th>Values<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td>id<\/td><td>\n                    <strong>Type:&nbsp;<\/strong>Number<br>\n                    <strong>Default:&nbsp;<\/strong>NULL<br>\n                    <small><em>Use your locations id those you want to add into map. Use comma separated id for multiple ids<\/em><\/small>\n                <\/td><td>\n                    <code>[<code>control-locations-map id=\"23\"<\/code>]<\/code><br>\n                    <code>[<code>control-locations-map id=\"23,34,44\"<\/code>]<\/code>\n                <\/td><\/tr><tr><td colspan=\"3\"><\/td><\/tr><tr><td>zoom<\/td><td>\n                    <strong>Type:&nbsp;<\/strong>Number<br>\n                    <strong>Default:&nbsp;<\/strong>8<br>\n                    <small><em>Range:0-20<\/em><\/small>\n                <\/td><td><code>[<code>control-locations-map zoom=\"8\"<\/code>]<\/code><\/td><\/tr><tr><td colspan=\"3\"><\/td><\/tr><tr><td>map_only<\/td><td>\n                    <strong>Type:&nbsp;<\/strong>Boolean<br>\n                    <strong>Default:&nbsp;<\/strong>FALSE<br>\n                    <small><em>View map.<\/em><\/small>\n                <\/td><td><code>[<code>control-locations-map map_only=\"false\"<\/code>]<\/code><\/td><\/tr><tr><td colspan=\"3\"><\/td><\/tr><tr><td>hide_search<\/td><td>\n                    <strong>Type:&nbsp;<\/strong>Boolean<br>\n                    <strong>Default:&nbsp;<\/strong>FALSE<br>\n                    <small><em>Search form appear or not<\/em><\/small>\n                <\/td><td><code>[<code>control-locations-map hide_search=\"false\"<\/code>]<\/code><\/td><\/tr><tr><td colspan=\"3\"><\/td><\/tr><tr><td>map_title<\/td><td>\n                    <strong>Type:&nbsp;<\/strong>text<br>\n                    <strong>Default:&nbsp;<\/strong>Control Locations<br>\n                    <small><em>Content title<\/em><\/small>\n                <\/td><td><code>[<code>control-locations-map map_title=\"My title\"<\/code>]<\/code><\/td><\/tr><tr><td colspan=\"3\"><\/td><\/tr><tr><td>nearme_text<\/td><td>\n                    <strong>Type:&nbsp;<\/strong>text<br>\n                    <strong>Default:&nbsp;<\/strong>Near Me<br>\n                <\/td><td><code>[<code>control-locations-map nearme_text=\"My Location\"<\/code>]<\/code><\/td><\/tr><tr><td colspan=\"3\"><\/td><\/tr><tr><td>map_view_style<\/td><td>\n                    <strong>Type:&nbsp;<\/strong>text<br>\n                    <strong>Default:&nbsp;<\/strong>content-left<br>\n                    <small><em>Supported styles : content-left, content-right, content-top, content-bottom<\/em><\/small>\n                <\/td><td><code>[<code>control-locations-map map_view_style=\"content-left\"<\/code>]<\/code><\/td><\/tr><tr><td colspan=\"3\"><\/td><\/tr><tr><td>tile_url<\/td><td>\n                    <strong>Type:&nbsp;<\/strong>link<br>\n                    <strong>Default:&nbsp;<\/strong>NULL<br>\n                    <small>\n                        <em>See more tile server&nbsp;<a href=\"https:\/\/wiki.openstreetmap.org\/wiki\/Raster_tile_providers\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a><\/em>\n                    <\/small>\n                <\/td><td><code>[<code>control-locations-map tile_url=\"https:\/\/{s}.tile.openstreetmap.org\/{z}\/{x}\/{y}.png\"<\/code>]<\/code><\/td><\/tr><tr><td colspan=\"3\"><\/td><\/tr><tr><td>map_height<\/td><td>\n                    <strong>Type:&nbsp;<\/strong>Number<br>\n                    <strong>Default:&nbsp;<\/strong>600<br>\n                    <small><em>Height in pixel<\/em><\/small>\n                <\/td><td><code>[<code>control-locations-map map_height=\"600\"<\/code>]<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Shortcode:&nbsp;[control-locations-map] Go to Control Locations &gt; Settings &gt; Shortcode Attributes Values Example id Type:&nbsp;Number Default:&nbsp;NULL Use your locations id those you want to add into map. Use comma separated id for multiple ids [control-locations-map id=\"23\"] [control-locations-map id=\"23,34,44\"] zoom Type:&nbsp;Number Default:&nbsp;8 Range:0-20 [control-locations-map zoom=\"8\"] map_only Type:&nbsp;Boolean Default:&nbsp;FALSE View map. [control-locations-map map_only=\"false\"] hide_search Type:&nbsp;Boolean Default:&nbsp;FALSE Search form&hellip;<\/p>\n","protected":false},"author":1,"featured_media":336,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-113","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-documentation","entry"],"_links":{"self":[{"href":"https:\/\/themeperch.net\/plugin\/control-locations\/wp-json\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themeperch.net\/plugin\/control-locations\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themeperch.net\/plugin\/control-locations\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themeperch.net\/plugin\/control-locations\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/themeperch.net\/plugin\/control-locations\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":0,"href":"https:\/\/themeperch.net\/plugin\/control-locations\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themeperch.net\/plugin\/control-locations\/wp-json\/wp\/v2\/media\/336"}],"wp:attachment":[{"href":"https:\/\/themeperch.net\/plugin\/control-locations\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themeperch.net\/plugin\/control-locations\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themeperch.net\/plugin\/control-locations\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}