{"id":200,"date":"2020-05-08T23:27:21","date_gmt":"2020-05-08T23:27:21","guid":{"rendered":"https:\/\/directorist.com\/docs\/?post_type=wpwax_directorist&#038;p=200"},"modified":"2021-07-25T23:57:30","modified_gmt":"2021-07-25T17:57:30","slug":"search-page","status":"publish","type":"wpwax_directorist","link":"https:\/\/directorist.com\/documentation\/directorist\/shortcodes\/search-page\/","title":{"rendered":"Search Results"},"content":{"rendered":"<div id=\"eckb-article-content-header\">\n<h3 id=\"12179\" class=\"eckb-article-title kb-article-id\">Search Results<\/h3>\n<\/div>\n<div id=\"eckb-article-content-body\">\n<div id=\"kb-article-content\">\n<p>You can display the result of a search of listings on any page by using this<\/p>\n<p><strong>Search Result Listing:<\/strong> <code>[directorist_search_result]<\/code><\/p>\n<p><code>[directorist_search_result]<\/code>\u00a0has many parameters to customize the display of all listings in the search result page. Let\u2019s have a look at the available parameters and their available values with some description.<\/p>\n<h4>Parameters:<\/h4>\n<ol>\n<li><strong>view<\/strong>: You can display the search results in a list, grid &amp; map view layout. Available Options: list | grid | map view. The default value is the grid. Example:\n<pre>[directorist_search_result view=\"grid\"]<\/pre>\n<\/li>\n<li><b>order by<\/b>: You can order the search results using this parameter. Available Options: title, date | price. The default is the date. Example:\n<pre>[directorist_search_result orderby=\"date\"]<\/pre>\n<\/li>\n<li><strong>order<\/strong>: You can sort the result in ascending or descending order using this option. Available Options: asc | desc. The default is asc. Example:\n<pre>[directorist_search_result order=\"asc\"]<\/pre>\n<\/li>\n<li><strong>logged_in_user_only<\/strong>: You can make search result only visible for the logged-in users using this parameter. Options available: yes | no. Example:\n<pre>[directorist_search_result logged_in_user_only=\"no\"]<\/pre>\n<\/li>\n<li><strong>redirect_page_url<\/strong>: Forward\/redirect search result page using this parameter. Example:\n<pre>[directorist_search_result redirect_page_url=\"www.aazztech.com\"]<\/pre>\n<\/li>\n<li><strong>listings_per_page<\/strong>: Number of listings to show in the result per page. The default is 6. Example:\n<pre>[directorist_search_result listings_per_page=\"6\"]<\/pre>\n<\/li>\n<li><strong>featured_only<\/strong>: Display only featured listings in the result. Options available: yes | no. Example:\n<pre>[directorist_search_result featured_only=\"yes\"]<\/pre>\n<\/li>\n<li><strong>popular_only<\/strong>: Display only popular listings in the result. Options available: yes | no. Example:\n<pre>[directorist_search_result popular_only=\"yes\"]<\/pre>\n<\/li>\n<li><strong>header<\/strong>: You can hide\/show the header area using header attributes. Options available: yes | no. Example:\n<pre>[directorist_search_result header=\"yes\"]<\/pre>\n<\/li>\n<li><strong>header_title<\/strong>:\n<pre>[directorist_search_result header_title=\"Search Result\"]<\/pre>\n<\/li>\n<li><strong>header_sub_title<\/strong>:\n<pre>[directorist_search_result header_sub_title =\"Total Listing Found\"]<\/pre>\n<\/li>\n<li><strong>columns<\/strong>: select any column for grid view using columns attribute.\n<pre>[directorist_search_result column=\"3\"]<\/pre>\n<\/li>\n<li><strong><span class=\"s1\">show_pagination<\/span><\/strong>: You can show\/hide pagination using this attribute. Available options: yes|no. Example:\n<pre>[directorist_search_result\u00a0<span class=\"s1\">show_pagination<\/span>=\"yes\"]<\/pre>\n<\/li>\n<li><strong><span class=\"s1\">map_height<\/span><\/strong>: You can customize the height of the map view layout using this attribute. Example\n<pre>[directorist_search_result\u00a0<span class=\"s1\">map_height<\/span>=\"350\"]<\/pre>\n<\/li>\n<\/ol>\n<h3>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_2560\" class=\"wp-caption aligncenter\" aria-describedby=\"caption-attachment-2560\"><a href=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/search-result.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2560 lazyloaded\" src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/search-result.png\" alt=\"search result\" width=\"1920\" height=\"1859\" data-lazy-src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/search-result.png\" data-was-processed=\"true\" \/><\/a><\/figure>\n<p>That&#8217;s all about Search Results page shortcodes.<\/p>\n<\/div>\n<\/div>\n","protected":false},"author":2298,"parent":0,"menu_order":0,"template":"","class_list":["post-200","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\/200","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=200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}