{"id":604,"date":"2020-05-27T16:36:57","date_gmt":"2020-05-27T16:36:57","guid":{"rendered":"https:\/\/directorist.com\/docs\/?post_type=wpwax_dservice&#038;p=604"},"modified":"2020-06-01T07:07:21","modified_gmt":"2020-06-01T07:07:21","slug":"map-view","status":"publish","type":"wpwax_dservice","link":"https:\/\/directorist.com\/documentation\/dservice\/advanced-settings\/map-view\/","title":{"rendered":"Map View"},"content":{"rendered":"<div id=\"eckb-article-content-header\">\n<h1 id=\"12411\" class=\"eckb-article-title kb-article-id\">Map View<\/h1>\n<\/div>\n<div id=\"eckb-article-content-body\">\n<div id=\"kb-article-content\">\n<p>You can display listings in map view on any page using the following shortcode.<\/p>\n<table id=\"tablepress-3\" class=\"tablepress tablepress-id-3\">\n<tbody class=\"row-hover\">\n<tr class=\"row-1 odd\">\n<td class=\"column-1\">All Listing<\/td>\n<td class=\"column-2\"><code>[directorist_all_listing view='map']<\/code><\/td>\n<\/tr>\n<tr class=\"row-2 even\">\n<td class=\"column-1\">Single Category<\/td>\n<td class=\"column-2\"><code>[directorist_category view='map']<\/code><\/td>\n<\/tr>\n<tr class=\"row-3 odd\">\n<td class=\"column-1\">Single Location<\/td>\n<td class=\"column-2\"><code>[directorist_location view='map']<\/code><\/td>\n<\/tr>\n<tr class=\"row-4 even\">\n<td class=\"column-1\">Single Tag<\/td>\n<td class=\"column-2\"><code>[directorist_tag view='map']<\/code><\/td>\n<\/tr>\n<tr class=\"row-5 odd\">\n<td class=\"column-1\">Search Result<\/td>\n<td class=\"column-2\"><code>[directorist_search_result view='map']<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Shortcodes above have many parameters to customize the display of listings. Let&#8221;s have a look at the available parameters and their available values with some description.<\/p>\n<div id=\"tablepress-4_wrapper\" class=\"dataTables_wrapper no-footer\">\n<div id=\"tablepress-4_filter\" class=\"dataTables_filter\"><label>Search:<input class=\"\" type=\"search\" placeholder=\"\" aria-controls=\"tablepress-4\" \/><\/label><\/div>\n<div class=\"dataTables_scroll\">\n<div class=\"dataTables_scrollHead\">\n<div class=\"dataTables_scrollHeadInner\">\n<table class=\"tablepress tablepress-id-4 dataTable no-footer\" role=\"grid\">\n<thead>\n<tr class=\"row-1 odd\" role=\"row\">\n<th class=\"column-1 sorting_disabled\" colspan=\"1\" rowspan=\"1\">Shortcode Parameter<\/th>\n<th class=\"column-2 sorting_disabled\" colspan=\"1\" rowspan=\"1\">Description \/ Example<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<\/div>\n<\/div>\n<div class=\"dataTables_scrollBody\">\n<table id=\"tablepress-4\" class=\"tablepress tablepress-id-4 dataTable no-footer\" role=\"grid\" aria-describedby=\"tablepress-4_info\">\n<thead>\n<tr class=\"row-1 odd\" role=\"row\">\n<th class=\"column-1 sorting_disabled\" colspan=\"1\" rowspan=\"1\">\n<div class=\"dataTables_sizing\"><\/div>\n<\/th>\n<th class=\"column-2 sorting_disabled\" colspan=\"1\" rowspan=\"1\">\n<div class=\"dataTables_sizing\"><\/div>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-hover\">\n<tr class=\"row-2 even\" role=\"row\">\n<td class=\"column-1\">show_pagination<\/td>\n<td class=\"column-2\">You can show\/hide pagination. Available Options: yes|no<br \/>\nExample:<br \/>\n<code>[directorist_all_listing view='map' show_pagination='yes']<\/code><br \/>\n<code>[directorist_category view='map' show_pagination='yes']<\/code><br \/>\n<code>[directorist_location view='map' show_pagination='yes']<\/code><br \/>\n<code>[directorist_tag view='map' show_pagination='yes']<\/code><\/td>\n<\/tr>\n<tr class=\"row-3 odd\" role=\"row\">\n<td class=\"column-1\">listings_per_page<\/td>\n<td class=\"column-2\">You can set the number of listing to show per page using this parameter. The default is 6.<br \/>\nExample:<br \/>\n<code>[directorist_all_listing listings_per_page=\"6\"]<\/code><br \/>\n<code>[directorist_category listings_per_page=\"6\"]<\/code><br \/>\n<code>[directorist_location listings_per_page=\"6\"]<\/code><br \/>\n<code>[directorist_tag listings_per_page=\"6\"]<\/code><\/td>\n<\/tr>\n<tr class=\"row-4 even\" role=\"row\">\n<td class=\"column-1\">featured_only<\/td>\n<td class=\"column-2\">Display only featured listing. Options available: yes | no.<br \/>\nExample:<br \/>\n<code>[directorist_all_listing featured_only=\"yes\"]<\/code><\/td>\n<\/tr>\n<tr class=\"row-5 odd\" role=\"row\">\n<td class=\"column-1\">popular_only<\/td>\n<td class=\"column-2\">Display only popular listing. Options available: yes | no.<br \/>\nExample:<br \/>\n<code>[directorist_all_listing popular_only=\"yes\"]<\/code><\/td>\n<\/tr>\n<tr class=\"row-6 even\" role=\"row\">\n<td class=\"column-1\">category<\/td>\n<td class=\"column-2\">Display all listings of one or more categories. Use category slugs separated by a comma.<br \/>\nExample:<br \/>\n<code>[directorist_all_listing category=\"food,travel,medical\"]<\/code><\/td>\n<\/tr>\n<tr class=\"row-7 odd\" role=\"row\">\n<td class=\"column-1\">location<\/td>\n<td class=\"column-2\">Display all listings of one or more locations by location slug. Use location slugs separated by a comma.<br \/>\nExample:<br \/>\n<code>[directorist_all_listing location=\"new-york,michigan\"]<\/code><\/td>\n<\/tr>\n<tr class=\"row-8 even\" role=\"row\">\n<td class=\"column-1\">ids<\/td>\n<td class=\"column-2\">You can display listings by listing ids<br \/>\nExample:<br \/>\n<code>[directorist_all_listing ids=\"1,2,5\"]<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":2296,"parent":0,"menu_order":0,"template":"","class_list":["post-604","wpwax_dservice","type-wpwax_dservice","status-publish","hentry","wpwax_dservice_category-advanced-settings"],"acf":[],"_links":{"self":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/wpwax_dservice\/604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/wpwax_dservice"}],"about":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/types\/wpwax_dservice"}],"author":[{"embeddable":true,"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/users\/2296"}],"wp:attachment":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/media?parent=604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}