{"id":368450,"date":"2025-10-23T08:47:23","date_gmt":"2025-10-23T02:47:23","guid":{"rendered":"https:\/\/directorist.com\/?post_type=docs&#038;p=368450"},"modified":"2025-10-28T08:38:35","modified_gmt":"2025-10-28T02:38:35","password":"","slug":"directorist-shortcodes","status":"publish","type":"docs","link":"https:\/\/directorist.com\/docs\/directorist-shortcodes\/","title":{"rendered":"Directorist Shortcodes"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\"><strong>Overview<\/strong><\/h3>\n\n\n\n<p>Directorist provides a wide range of shortcodes to help you display directory components anywhere on your website. Each shortcode serves a specific purpose, from showing all listings to enabling front-end submissions, user dashboards, and more.<\/p>\n\n\n\n<p>Shortcodes also support multiple&nbsp;<strong>parameters<\/strong>&nbsp;that let you customize how listings and pages are displayed. You can control layout type, number of listings per page, sorting order, and more \u2014 all directly through shortcode attributes.<\/p>\n\n\n\n<p>All of these parameters are&nbsp;<strong>optional<\/strong>. If you don\u2019t include them, Directorist will automatically use the default options configured in the settings panel at<br><strong>Directory Listings \u2192 Settings \u2192 Listing Settings \u2192 General Settings<\/strong>.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;directorist_all_listing view=\"grid\" listings_per_page=\"9\" orderby=\"date\" order=\"desc\"]\n<\/code><\/pre>\n\n\n\n<p>This shortcode displays listings in a grid view, showing nine listings per page, ordered by date in descending order.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Shortcode<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td><code>[directorist_add_listing]<\/code><\/td><td>Displays the&nbsp;<strong>Add Listing<\/strong>&nbsp;form, allowing users to submit new listings from the frontend.<\/td><\/tr><tr><td><code>[directorist_all_listing]<\/code><\/td><td>Shows all active listings in your directory with sorting, filtering, and view options.<\/td><\/tr><tr><td><code>[directorist_category]<\/code><\/td><td>Displays listings from a specific&nbsp;<strong>category<\/strong>&nbsp;based on the selected category ID or slug.<\/td><\/tr><tr><td><code>[directorist_all_locations]<\/code><\/td><td>Shows a list of all&nbsp;<strong>locations<\/strong>&nbsp;configured in your directory.<\/td><\/tr><tr><td><code>[directorist_search_result]<\/code><\/td><td>Displays the&nbsp;<strong>search results page<\/strong>, showing listings based on user search queries and filters.<\/td><\/tr><tr><td><code>[directorist_login_registration]<\/code><\/td><td>Displays both&nbsp;<strong>login and registration<\/strong>&nbsp;forms on the same page for easy user access.<\/td><\/tr><tr><td><code>[directorist_checkout]<\/code><\/td><td>Displays the&nbsp;<strong>payment and checkout<\/strong>&nbsp;process for monetized listings.<\/td><\/tr><tr><td><code>[directorist_all_categories]<\/code><\/td><td>Shows all available&nbsp;<strong>categories<\/strong>&nbsp;in your directory, often used as a directory index.<\/td><\/tr><tr><td><code>[directorist_search_listing]<\/code><\/td><td>Displays the&nbsp;<strong>search form<\/strong>&nbsp;for listings. Can be placed on any page to allow quick searches.<\/td><\/tr><tr><td><code>[directorist_user_dashboard]<\/code><\/td><td>Displays the&nbsp;<strong>user dashboard<\/strong>, where authors can manage, edit, or delete their listings.<\/td><\/tr><tr><td><code>[directorist_author_profile]<\/code><\/td><td>Displays a specific&nbsp;<strong>author\u2019s profile<\/strong>&nbsp;page, including bio, contact info, and their listings.<\/td><\/tr><tr><td><code>[directorist_all_authors]<\/code><\/td><td>Displays a grid or list of&nbsp;<strong>all authors<\/strong>&nbsp;who have published listings in the directory.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Learn More<\/strong><\/h3>\n\n\n\n<p>Each shortcode has its own detailed documentation explaining its available parameters, usage examples, and customization options.<br>Visit the specific shortcode documentation page (e.g.,&nbsp;<em>Add Listing Shortcode<\/em>,&nbsp;<em>All Listings Shortcode<\/em>,&nbsp;<em>Search Shortcode<\/em>, etc.) for complete details and practical examples.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Tips for Using Directorist Shortcodes<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use these shortcodes individually or combine them to create custom directory pages.<\/li>\n\n\n\n<li>Shortcodes automatically inherit your directory layout and theme styling.<\/li>\n\n\n\n<li>You can add shortcode parameters (like category, location, or view type) to customize output.<\/li>\n\n\n\n<li>Always make sure the shortcode is placed inside a&nbsp;<strong>Shortcode Block<\/strong>&nbsp;in the editor for best results.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Directorist provides a wide range of shortcodes to help you display directory components anywhere on your website. Each shortcode serves a specific purpose, from showing all listings to enabling front-end submissions, user dashboards, and more. Shortcodes also support multiple&nbsp;parameters&nbsp;that let you customize how listings and pages are displayed. You can control layout type, number [&hellip;]<\/p>\n","protected":false},"author":24585,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[707],"doc_tag":[],"class_list":["post-368450","docs","type-docs","status-publish","hentry","doc_category-shortcodes-library"],"year_month":"2026-03","word_count":454,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"yousuf.sovware","author_nicename":"yousuf-sovware","author_url":"https:\/\/directorist.com\/author\/yousuf-sovware\/"},"doc_category_info":[{"term_name":"Shortcodes Library","term_url":"https:\/\/directorist.com\/docs-category\/shortcodes-library\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/docs\/368450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/users\/24585"}],"replies":[{"embeddable":true,"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/comments?post=368450"}],"version-history":[{"count":0,"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/docs\/368450\/revisions"}],"wp:attachment":[{"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/media?parent=368450"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/doc_category?post=368450"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/directorist.com\/wp-json\/wp\/v2\/doc_tag?post=368450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}