{"id":2143,"date":"2014-02-03T10:16:02","date_gmt":"2014-02-03T10:16:02","guid":{"rendered":"http:\/\/wp\/?page_id=2143"},"modified":"2023-11-06T12:03:26","modified_gmt":"2023-11-06T12:03:26","slug":"shortcodes","status":"publish","type":"page","link":"https:\/\/www.salephpscripts.com\/wordpress_maps\/demo\/shortcodes\/","title":{"rendered":"Shortcodes"},"content":{"rendered":"<div class=\"w2dc-docs\">\n<h3><strong>&#091;webmap&#093;<\/strong><\/h3>\n<p>This shortcode is used to build google maps with listings locations as map markers. The best way is to build a map in Maps Manager and use such kind of shortcode &#091;webmap id=XXX&#093;, but it's possible to build custom map shortcode using following additional attributes:<\/p>\n<table>\n<tr>\n<th>Parameter<\/th>\n<th class=\"th-description\"><\/th>\n<th>Default<\/th>\n<\/tr>\n<tr>\n<td><strong>id<\/strong><\/td>\n<td>This is ID of the map created in the Maps Manager<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>num<\/strong><\/td>\n<td>Number of markers to display on map (-1 gives all markers).<\/td>\n<td class=\"td-center\">-1<\/td>\n<\/tr>\n<tr>\n<td><strong>uid<\/strong><\/td>\n<td>Enter unique string to connect this shortcode with the search form.<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>width<\/strong><\/td>\n<td>Set map width (by default whole possible width).<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>height<\/strong><\/td>\n<td>Set map height.<\/td>\n<td class=\"td-center\">400<\/td>\n<\/tr>\n<tr>\n<td><strong>radius_circle<\/strong><\/td>\n<td>Display radius cycle on map when radius filter provided.<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td><strong>clusters<\/strong><\/td>\n<td>Group map markers in clusters.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>sticky_scroll<\/strong><\/td>\n<td>Makes the map to be sticky on scroll.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>sticky_scroll_toppadding<\/strong><\/td>\n<td>Sticky scroll top padding in pixels.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>map_style<\/strong><\/td>\n<td>Google Maps style. Whole list in directory settings.<\/td>\n<td class=\"td-center\">default<\/td>\n<\/tr>\n<tr>\n<td><strong>show_summary_button<\/strong><\/td>\n<td>Show \"\u00ab Summary\" button in info window.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>show_readmore_button<\/strong><\/td>\n<td>Show \"Read more \u00bb\" button in info window.<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td><strong>directions_sidebar_open<\/strong><\/td>\n<td>Directions sidebar opened by default.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>ajax_loading<\/strong><\/td>\n<td>When map contains lots of markers - this may slow down map markers loading. Select AJAX to speed up loading. Requires Starting Address or Starting Point coordinates Latitude and Longitude.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>ajax_markers_loading<\/strong><\/td>\n<td>Maps info window AJAX loading. This may additionally speed up loading.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>use_ajax_loader<\/strong><\/td>\n<td>Show spinner on AJAX requests.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>counter<\/strong><\/td>\n<td>Show locations counter.<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td><strong>counter_text<\/strong><\/td>\n<td>Show spinner on AJAX requests.<\/td>\n<td class=\"td-center\">Number of locations %d<\/td>\n<\/tr>\n<tr>\n<td><strong>start_address<\/strong><\/td>\n<td>When map markers load by AJAX - it should have starting point and starting zoom. Enter start address or select latitude and longitude. Example: 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA.<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>start_latitude<\/strong><\/td>\n<td>Starting point latitude.<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>start_longitude<\/strong><\/td>\n<td>Starting point longitude.<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>start_zoom<\/strong><\/td>\n<td>Starting point zoom. Value from 0 (auto zoom) to 19.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>geolocation<\/strong><\/td>\n<td>Enable automatic user Geolocation.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>draw_panel<\/strong><\/td>\n<td>Enable Draw Panel.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>enable_full_screen<\/strong><\/td>\n<td>Enable full screen button.<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td><strong>enable_full_screen_by_default<\/strong><\/td>\n<td>Map full screen opened by default.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>enable_wheel_zoom<\/strong><\/td>\n<td>Enable zoom by mouse wheel. For desktops.<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 14px;\"><strong>enable_dragging_touchscreens<\/strong><\/td>\n<td>Enable map dragging on touch screen devices.<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td><strong>center_map_onclick<\/strong><\/td>\n<td>Center map on marker click.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>center_map_onclick<\/strong><\/td>\n<td>Center map on marker click. Value from 0 (auto zoom) to 19.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>search_on_map<\/strong><\/td>\n<td>Show search form and listings panel on the map.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>search_on_map_open<\/strong><\/td>\n<td>Search form open by default.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>order_by<\/strong><\/td>\n<td>Possible values: post_date, title, rand, distance - when listings search in radius. Also this is possible to order by some content fields, those types have ordering functionality: text string, date-time, digital number, price. Just need to set content field slug as this attribute.<\/td>\n<td class=\"td-center\">post_date<\/td>\n<\/tr>\n<tr>\n<td><strong>order<\/strong><\/td>\n<td>Direction of sorting: ASC or DESC.<\/td>\n<td class=\"td-center\">ASC<\/td>\n<\/tr>\n<tr>\n<td><strong>show_keywords_search<\/strong><\/td>\n<td>Show keywords search on the search form.<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td><strong>what_search<\/strong><\/td>\n<td>Default keywords on the search form.<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>show_categories_search<\/strong><\/td>\n<td>Show categories search on the search form.<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td><strong>categories_search_level<\/strong><\/td>\n<td>Categories search depth level on the search form (1,2,3).<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td><strong>category<\/strong><\/td>\n<td>Select certain category ID on the search form.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>exact_categories<\/strong><\/td>\n<td>List of categories on the search form. Comma separated string of categories slugs or IDs.<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>show_address_search<\/strong><\/td>\n<td>Show address search on the search form.<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td><strong>address<\/strong><\/td>\n<td>Default address in the search form, recommended to set default radius.<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>show_locations_search<\/strong><\/td>\n<td>Show locations search on the search form.<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td><strong>locations_search_level<\/strong><\/td>\n<td>Locations search depth level on the search form (1,2,3).<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td><strong>location<\/strong><\/td>\n<td>Select certain location ID on the search form.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>exact_locations<\/strong><\/td>\n<td>List of locations on the search form. Comma separated string of locations slugs or IDs.<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>author<\/strong><\/td>\n<td>Enter ID of author.<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>categories<\/strong><\/td>\n<td>Comma separated string of categories IDs or slugs - use only IDs or only slugs.<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>locations<\/strong><\/td>\n<td>Comma separated string of locations IDs or slugs - use only IDs or only slugs.<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>include_categories_children<\/strong><\/td>\n<td>Include children of selected categories and locations. When enabled - any subcategories or sublocations will be included as well.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>post__in<\/strong><\/td>\n<td>Exact listings. Comma separated string of listings IDs. Possible to display exact listings.<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>field_<em>SLUG<\/em><\/td>\n<td colspan=\"2\">Possible to filter by content fields values like on the search form. Filters depend on fields types:<\/p>\n<ul>\n<li><strong>Text string and Textarea<\/strong> - filter in the following format: <strong>field_<em>SLUG<\/em>=\"string\"<\/strong><\/li>\n<li><strong>Digital value<\/strong> - here are 2 variants: when content field was configured to search by exact values - <strong>field_<em>SLUG<\/em>=\"number\"<\/strong>; when content field was configured to search by MIN and MAX values - <strong>field_<em>SLUG<\/em>_min=\"number\"<\/strong> and\/or <strong>field_<em>SLUG<\/em>_max=\"number\"<\/strong><\/li>\n<li><strong>Price<\/strong> - the same as for Digital value type<\/li>\n<li><strong>Date-Time<\/strong> - define date range in the following format: <strong>field_<em>SLUG<\/em>_min=\"dd.mm.yyyy\"<\/strong> and\/or <strong>field_<em>SLUG<\/em>_max=\"dd.mm.yyyy\"<\/strong><\/li>\n<li><strong>Select list, Radio buttons and Checkboxes<\/strong> - filter in the following format: <strong>field_<em>SLUG<\/em>=\"comma separated selection items IDs\"<\/strong>. Select list, Radio buttons support only single ID.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<hr \/>\n<h3><strong>&#091;webmap-search&#093;<\/strong><\/h3>\n<p>This shortcode builds the search form connected with the map. Parameters of this shortcode:<\/p>\n<table>\n<tr>\n<th>Parameter<\/th>\n<th class=\"th-description\"><\/th>\n<th>Default<\/th>\n<\/tr>\n<tr>\n<td><strong>uid<\/strong><\/td>\n<td>Enter unique string to connect this shortcode with the map.<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>columns<\/strong><\/td>\n<td>Number of columns to format search fields<\/td>\n<td class=\"td-center\">2<\/td>\n<\/tr>\n<tr>\n<td><strong>advanced_open<\/strong><\/td>\n<td>Advanced search panel is opened by default.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>show_keywords_search<\/strong><\/td>\n<td>Show keywords search on the search form.<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td><strong>what_search<\/strong><\/td>\n<td>Default keywords on the search form.<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>show_categories_search<\/strong><\/td>\n<td>Show categories search on the search form.<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td><strong>categories_search_level<\/strong><\/td>\n<td>Categories search depth level on the search form (1,2,3).<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td><strong>category<\/strong><\/td>\n<td>Select certain category ID on the search form.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>exact_categories<\/strong><\/td>\n<td>List of categories on the search form. Comma separated string of categories slugs or IDs.<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>show_address_search<\/strong><\/td>\n<td>Show address search on the search form.<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td><strong>address<\/strong><\/td>\n<td>Default address, recommended to set default radius.<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>show_locations_search<\/strong><\/td>\n<td>Show locations search on the search form.<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td><strong>locations_search_level<\/strong><\/td>\n<td>Locations search depth level on the search form (1,2,3).<\/td>\n<td class=\"td-center\">1<\/td>\n<\/tr>\n<tr>\n<td><strong>location<\/strong><\/td>\n<td>Select certain location ID on the search form.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>exact_locations<\/strong><\/td>\n<td>List of locations on the search form. Comma separated string of locations slugs or IDs.<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>search_fields<\/strong><\/td>\n<td>Select certain content fields in main search section (comma separated IDs).<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>search_fields_advanced<\/strong><\/td>\n<td>Select certain content fields in advanced search section (comma separated IDs).<\/td>\n<td class=\"td-center\"><\/td>\n<\/tr>\n<tr>\n<td><strong>search_bg_color<\/strong><\/td>\n<td>Search form background HEX color.<\/td>\n<td class=\"td-center\">by setting*<\/td>\n<\/tr>\n<tr>\n<td><strong>search_bg_opacity<\/strong><\/td>\n<td>Search form background opacity (in percents).<\/td>\n<td class=\"td-center\">100<\/td>\n<\/tr>\n<tr>\n<td><strong>search_text_color<\/strong><\/td>\n<td>Search form text HEX color.<\/td>\n<td class=\"td-center\">by setting*<\/td>\n<\/tr>\n<tr>\n<td><strong>search_overlay<\/strong><\/td>\n<td>Enable\/disable search form overlay image.<\/td>\n<td class=\"td-center\">by setting*<\/td>\n<\/tr>\n<tr>\n<td><strong>scroll_to<\/strong><\/td>\n<td>Scroll to listings, map or do not scroll after search button was pressed.<\/td>\n<td class=\"td-center\">listings<\/td>\n<\/tr>\n<tr>\n<td><strong>hide_search_button<\/strong><\/td>\n<td>Allows to hide search button.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>on_row_search_button<\/strong><\/td>\n<td>Search button on one line with fields.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>sticky_scroll<\/strong><\/td>\n<td>Make search form to be sticky on scroll.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>sticky_scroll_toppadding<\/strong><\/td>\n<td>Sticky scroll top padding in pixels.<\/td>\n<td class=\"td-center\">0<\/td>\n<\/tr>\n<tr>\n<td><strong>field_<em>SLUG<\/em><\/td>\n<td colspan=\"2\">Possible to filter by content fields values. Filters depend on fields types:<\/p>\n<ul>\n<li><strong>Text string and Textarea<\/strong> - filter in the following format: <strong>field_<em>SLUG<\/em>=\"string\"<\/strong><\/li>\n<li><strong>Digital value<\/strong> - here are 2 variants: when content field was configured to search by exact values - <strong>field_<em>SLUG<\/em>=\"number\"<\/strong>; when content field was configured to search by MIN and MAX values - <strong>field_<em>SLUG<\/em>_min=\"number\"<\/strong> and\/or <strong>field_<em>SLUG<\/em>_max=\"number\"<\/strong><\/li>\n<li><strong>Price<\/strong> - the same as for Digital value type<\/li>\n<li><strong>Date-Time<\/strong> - define date range in the following format: <strong>field_<em>SLUG<\/em>_min=\"dd.mm.yyyy\"<\/strong> and\/or <strong>field_<em>SLUG<\/em>_max=\"dd.mm.yyyy\"<\/strong><\/li>\n<li><strong>Select list, Radio buttons and Checkboxes<\/strong> - filter in the following format: <strong>field_<em>SLUG<\/em>=\"comma separated selection items IDs\"<\/strong>. Select list, Radio buttons support only single ID.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/table>\n<hr \/>\n<h3><strong>&#091;webmap-submit&#093;<\/strong><\/h3>\n<p>Works only when <a href=\"https:\/\/www.salephpscripts.com\/wordpress_maps\/demo\/documentation\/#frontend\">Frontend submission & dashboard addon<\/a> was enabled. This shortcode builds listings submission pages.<\/p>\n<hr \/>\n<h3><strong>&#091;webmap-dashboard&#093;<\/strong><\/h3>\n<p>Works only when <a href=\"https:\/\/www.salephpscripts.com\/wordpress_maps\/demo\/documentation\/#frontend\">Frontend submission & dashboard addon<\/a> was enabled. Logged in users have an ability to manage their listings and profile on the frontend dashboard page. This shortcode doesn't have any parameters.<\/p>\n<hr \/>\n<h3><strong>&#091;webmap-submit-button&#093;<\/strong><\/h3>\n<p>Works only when <a href=\"https:\/\/www.salephpscripts.com\/wordpress_maps\/demo\/documentation\/#frontend\">Frontend submission & dashboard addon<\/a> was enabled. Renders \"<em>Submit new listing<\/em>\" button. This shortcode doesn't have any attributes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Aenean gravida dapibus mollis. Praesent non nisl risus. Morbi dolor mauris, sodales sed bibendum et, interdum sed orci.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2143","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.salephpscripts.com\/wordpress_maps\/demo\/wp-json\/wp\/v2\/pages\/2143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.salephpscripts.com\/wordpress_maps\/demo\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.salephpscripts.com\/wordpress_maps\/demo\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.salephpscripts.com\/wordpress_maps\/demo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.salephpscripts.com\/wordpress_maps\/demo\/wp-json\/wp\/v2\/comments?post=2143"}],"version-history":[{"count":6,"href":"https:\/\/www.salephpscripts.com\/wordpress_maps\/demo\/wp-json\/wp\/v2\/pages\/2143\/revisions"}],"predecessor-version":[{"id":18532,"href":"https:\/\/www.salephpscripts.com\/wordpress_maps\/demo\/wp-json\/wp\/v2\/pages\/2143\/revisions\/18532"}],"wp:attachment":[{"href":"https:\/\/www.salephpscripts.com\/wordpress_maps\/demo\/wp-json\/wp\/v2\/media?parent=2143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}