{"id":436,"date":"2020-05-13T16:46:54","date_gmt":"2020-05-13T16:46:54","guid":{"rendered":"https:\/\/directorist.com\/docs\/?post_type=wpwax_extensions&#038;p=436"},"modified":"2020-08-30T21:01:00","modified_gmt":"2020-08-30T21:01:00","slug":"shortcodes","status":"publish","type":"wpwax_extensions","link":"https:\/\/directorist.com\/documentation\/extensions\/post-your-need\/shortcodes\/","title":{"rendered":"Shortcodes"},"content":{"rendered":"<p><b>Post Your Need <\/b><span style=\"font-weight: 400\">comes with a couple of shortcodes for displaying the listings. They have a number of parameters to customize the output. All of these parameters are optional. If you do not use any parameters in the shortcode then the default settings ( Directory Listings &gt; Directory Settings &gt; Extensions Settings &gt; Need Listing page ) will be applied. Let\u2019s have a look at the available shortcodes and their parameters with some description: .<\/span><\/p>\n<h3><span style=\"font-weight: 400\">All Needs : <code>[directorist_all_needs]<\/code><\/span><\/h3>\n<p><span style=\"font-weight: 400\">This shortcode displays all need listings.\u00a0<\/span><\/p>\n<h4><span style=\"font-weight: 400\">Parameters<\/span><span style=\"font-weight: 400\">:<\/span><\/h4>\n<ol>\n<li style=\"font-weight: 400\"><b>orderby <\/b><span style=\"font-weight: 400\">: You can order all needs using this parameter. Options available : title, date &amp; price. Default is date. Example: [<\/span><span style=\"font-weight: 400\">directorist_all_needs<\/span><span style=\"font-weight: 400\"> orderby=\u201ddate\u201d].<\/span><\/li>\n<li style=\"font-weight: 400\"><b>posts_per_page<\/b><span style=\"font-weight: 400\">: You can set the number of needs to show per page using this parameter. Default is 6. Example: [<\/span><span style=\"font-weight: 400\">directorist_all_needs<\/span><span style=\"font-weight: 400\"> posts_per_page=\u201d6\u2033].<\/span><\/li>\n<li style=\"font-weight: 400\"><b>columns<\/b><span style=\"font-weight: 400\">: You can set the number of columns of the grid view layout using this attribute. Example [<\/span><span style=\"font-weight: 400\">directorist_all_needs<\/span><span style=\"font-weight: 400\"> columns=\u201d3\u2033].<\/span><\/li>\n<li style=\"font-weight: 400\"><b>show_pagination<\/b><span style=\"font-weight: 400\">: You can show\/hide pagination. Available options: yes|no.\u00a0 Example [<\/span><span style=\"font-weight: 400\">directorist_all_needs<\/span><span style=\"font-weight: 400\"> show_pagination=\u201dyes\u201d].<\/span><\/li>\n<li style=\"font-weight: 400\"><b>display_budget<\/b><span style=\"font-weight: 400\">: You can show\/hide budget field. Available options: yes|no.\u00a0 Example [<\/span><span style=\"font-weight: 400\">directorist_all_needs<\/span><span style=\"font-weight: 400\"> display_budget=\u201dyes\u201d].<\/span><\/li>\n<li style=\"font-weight: 400\"><b>display_category<\/b><span style=\"font-weight: 400\">: You can show\/hide category field. Available options: yes|no.\u00a0 Example [<\/span><span style=\"font-weight: 400\">directorist_all_needs<\/span><span style=\"font-weight: 400\"> display_category=\u201dyes\u201d].<\/span><\/li>\n<li style=\"font-weight: 400\"><b>display_author<\/b><span style=\"font-weight: 400\">: You can show\/hide author field. Available options: yes|no.\u00a0 Example [<\/span><span style=\"font-weight: 400\">directorist_all_needs<\/span><span style=\"font-weight: 400\"> display_author=\u201dyes\u201d].<\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h3><span style=\"font-weight: 400\">Need Categories : <code>[directorist_need_categories]<\/code><\/span><\/h3>\n<p><span style=\"font-weight: 400\">This shortcode displays all categories of need listings.<\/span><\/p>\n<h4><span style=\"font-weight: 400\">Parameters:<\/span><\/h4>\n<ul>\n<li style=\"font-weight: 400\"><b>view<\/b><span style=\"font-weight: 400\">: You can display all categories in a list layout or grid layout. Available Options: list | grid view. The default value is grid. Example: [directorist_all_categories view=\u201dgrid\u201d].<\/span><\/li>\n<li style=\"font-weight: 400\"><b>orderby<\/b><span style=\"font-weight: 400\">: You can order all categories using this attribute. Available Options : id | count | name | slug. The default is id. Example: [directorist_all_categories orderby =\u201did\u201d] .<\/span><\/li>\n<li style=\"font-weight: 400\"><b>order<\/b><span style=\"font-weight: 400\">: You can sort all categories in ascending or descending order using this attribute. Available Options: asc | desc. Default is asc. Example: [directorist_all_categories order=\u201dasc\u201d].<\/span><\/li>\n<li style=\"font-weight: 400\"><b>logged_in_user_only<\/b><span style=\"font-weight: 400\">: You can make all categories page only visible for logged in user using this parameter. Options available: yes | no. Example: [directorist_all_categories logged_in_user_only=\u201dno\u201d].<\/span><\/li>\n<li style=\"font-weight: 400\"><b>redirect_page_url<\/b><span style=\"font-weight: 400\">: Forward\/redirect all categories page using this parameter. Example: [directorist_all_categories redirect_page_url=\u201dwww.aazztech.com\u201d].<\/span><\/li>\n<li style=\"font-weight: 400\"><b>columns<\/b><span style=\"font-weight: 400\">: You can set the number of columns of the grid view layout using this attribute. Example [directorist_all_categories columns=\u201d3\u2033]<\/span><\/li>\n<li style=\"font-weight: 400\"><b>cat_per_page<\/b><span style=\"font-weight: 400\">: You can set the number of categories to show per page using this parameter. Default is 100. Example: [directorist_all_categories cat_per_page=\u201d6\u2033].<\/span><\/li>\n<li style=\"font-weight: 400\"><b>slug<\/b><span style=\"font-weight: 400\">: You can display specific categories using this parameter. Use category slugs separated by a comma. Example: [directorist_all_categories slug=\u201dfood\u201d].<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3><span style=\"font-weight: 400\">Need Locations : <code>[directorist_need_locations]<\/code><\/span><\/h3>\n<p><span style=\"font-weight: 400\">This shortcode displays all locations of need listings.<\/span><\/p>\n<h4><span style=\"font-weight: 400\">Parameters:<\/span><\/h4>\n<ul>\n<li style=\"font-weight: 400\"><b>view<\/b><span style=\"font-weight: 400\">: You can display all locations in a list layout or grid layout. Available Options: list | grid view. The default value is grid. Example: [directorist_all_locations view=\u201dgrid\u201d].<\/span><\/li>\n<li style=\"font-weight: 400\"><b>orderby<\/b><span style=\"font-weight: 400\">: You can order all locations using this attribute. Available Options : id | count | name | slug. The default is id. Example: [directorist_all_locations orderby =\u201did\u201d] .<\/span><\/li>\n<li style=\"font-weight: 400\"><b>order<\/b><span style=\"font-weight: 400\">: You can sort all locations in ascending or descending order using this attribute. Available Options: asc | desc. Default is asc. Example: [directorist_all_locations order=\u201dasc\u201d].<\/span><\/li>\n<li style=\"font-weight: 400\"><b>logged_in_user_only<\/b><span style=\"font-weight: 400\">: You can make all locations page only visible for logged in user using this parameter. Options available: yes | no. Example: [directorist_all_locations logged_in_user_only=\u201dno\u201d].<\/span><\/li>\n<li style=\"font-weight: 400\"><b>redirect_page_url<\/b><span style=\"font-weight: 400\">: Forward\/redirect all locations page using this parameter. Example: [directorist_all_locations redirect_page_url=\u201dwww.aazztech.com\u201d].<\/span><\/li>\n<li style=\"font-weight: 400\"><b>columns<\/b><span style=\"font-weight: 400\">: You can set the number of columns of the grid view layout using this attribute. Example [directorist_all_locations columns=\u201d3\u2033]<\/span><\/li>\n<li style=\"font-weight: 400\"><b>loc_per_page<\/b><span style=\"font-weight: 400\">: You can set the number of locations to show per page using this parameter. Default is 100. Example: [directorist_all_locations loc_per_page=\u201d6\u2033].<\/span><\/li>\n<li><b>slug<\/b><span style=\"font-weight: 400\">: You can be displayed any locations by this attribute. Example: [directorist_all_categories slug=\u201dusa\u201d].<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"author":2296,"parent":0,"menu_order":0,"template":"","class_list":["post-436","wpwax_extensions","type-wpwax_extensions","status-publish","hentry","wpwax_extensions_category-post-your-need"],"acf":[],"_links":{"self":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/wpwax_extensions\/436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/wpwax_extensions"}],"about":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/types\/wpwax_extensions"}],"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=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}