{"id":199,"date":"2020-05-08T23:26:31","date_gmt":"2020-05-08T23:26:31","guid":{"rendered":"https:\/\/directorist.com\/docs\/?post_type=wpwax_directorist&#038;p=199"},"modified":"2021-07-25T23:59:54","modified_gmt":"2021-07-25T17:59:54","slug":"locations-page","status":"publish","type":"wpwax_directorist","link":"https:\/\/directorist.com\/documentation\/directorist\/shortcodes\/locations-page\/","title":{"rendered":"All Locations Page"},"content":{"rendered":"<div id=\"eckb-article-content-header\">\n<p id=\"12195\" class=\"eckb-article-title kb-article-id\"><span style=\"font-size: inherit\">You can display all locations of directorist listings on any page or post using the following shortcodes.<\/span><\/p>\n<\/div>\n<div id=\"eckb-article-content-body\">\n<div id=\"kb-article-content\">\n<p><strong>Directorist all locations shortcode:<\/strong><code>[directorist_all_locations]<\/code><\/p>\n<p>The <code>[directorist_all_locations]<\/code> shortcode has many parameters to customize the display of all locations. Let\u2019s have a look at the available parameters and their available values with some description.<\/p>\n<h4>Attributes\/Parameters:<\/h4>\n<ul>\n<li><strong>view<\/strong>: You can display all locations in a list layout or grid layout. Available Options: list | grid view. The default value is the grid. Example:\n<pre>[directorist_all_locations view=\"grid\"]<\/pre>\n<\/li>\n<li><b>order by<\/b>: You can order all locations using this attribute. Available Options : id | count | name | slug. The default is id. Example:\n<pre>[directorist_all_locations orderby =\"id\"]<\/pre>\n<\/li>\n<li><strong>order<\/strong>: You can sort all locations in ascending or descending order using this attribute. Available Options: asc | desc. The default is asc. Example:\n<pre>[directorist_all_locations order=\"asc\"]<\/pre>\n<\/li>\n<li><strong>logged_in_user_only<\/strong>: You can make all locations page only visible for logged-in users using this parameter. Options available: yes | no. Example:\n<pre>[directorist_all_locations logged_in_user_only=\"no\"]<\/pre>\n<\/li>\n<li><strong>redirect_page_url<\/strong>: Forward\/redirect all locations page using this parameter. Example:\n<pre>[directorist_all_locations redirect_page_url=\"www.aazztech.com\"]<\/pre>\n<\/li>\n<li><strong>columns<\/strong>: You can set the number of columns of the grid view layout using this attribute. Example\n<pre>[directorist_all_locations columns=\"3\"]<\/pre>\n<\/li>\n<li><strong>loc_per_page<\/strong>: You can set the number of locations to show per page using this parameter. The default is 100. Example:\n<pre>[directorist_all_locations loc_per_page=\"6\"]<\/pre>\n<\/li>\n<li><strong><span class=\"s1\">slug<\/span><\/strong>: You can display any locations by using this attribute. Example:\n<pre>[directorist_all_locations slug=\"usa\"]<\/pre>\n<\/li>\n<\/ul>\n<h3 id=\"sample-screenshot\">Sample Screenshot<\/h3>\n<p>The shortcode output on your site may be a little different because new features are being added and modified with every update.<\/p>\n<figure id=\"attachment_2572\" class=\"wp-caption alignnone\" aria-describedby=\"caption-attachment-2572\"><a href=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/All-locations.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2572 lazyloaded\" src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/All-locations.jpg\" alt=\"All locations\" width=\"1920\" height=\"1096\" data-lazy-src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/All-locations.jpg\" data-was-processed=\"true\" \/><\/a><figcaption id=\"caption-attachment-2572\" class=\"wp-caption-text\">All locations<\/figcaption><\/figure>\n<h2 id=\"sample-screenshot\">Video<\/h2>\n<\/div>\n<\/div>\n<div data-id=\"X6hSmfas9wI\" data-query=\"feature=oembed\">\n<p><iframe loading=\"lazy\" title=\"Directorist Location\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/X6hSmfas9wI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>That&#8217;s all about All Locations Page shortcodes.<\/p>\n<\/div>\n","protected":false},"author":2298,"parent":0,"menu_order":0,"template":"","class_list":["post-199","wpwax_directorist","type-wpwax_directorist","status-publish","hentry","wpwax_directorist_category-shortcodes"],"acf":[],"_links":{"self":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/wpwax_directorist\/199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/wpwax_directorist"}],"about":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/types\/wpwax_directorist"}],"author":[{"embeddable":true,"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/users\/2298"}],"wp:attachment":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/media?parent=199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}