{"id":2091,"date":"2020-07-27T11:21:56","date_gmt":"2020-07-27T09:21:56","guid":{"rendered":"https:\/\/clonedesk.com\/?post_type=avada_faq&#038;p=2091"},"modified":"2020-07-27T11:26:16","modified_gmt":"2020-07-27T09:26:16","slug":"how-to-use-shortcodes","status":"publish","type":"avada_faq","link":"https:\/\/clonedesk.com\/en\/faq-items\/how-to-use-shortcodes\/","title":{"rendered":"How to Use Shortcodes"},"content":{"rendered":"<h2>Shortcode<\/h2>\n<p>Use [[field-name]] to display fields from required tasks.<\/p>\n<p><strong>Important:<\/strong> You can only show fields from required tasks.<\/p>\n<div class=\"BorlabsCookie _brlbs-cb-youtube\"><div class=\"_brlbs-content-blocker\"> <div class=\"_brlbs-embed _brlbs-video-youtube\"> <img class=\"lazyload _brlbs-thumbnail\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-orig-src=\"https:\/\/clonedesk.com\/wp-content\/plugins\/borlabs-cookie\/assets\/images\/cb-no-thumbnail.png\" alt=\"YouTube\"> <div class=\"_brlbs-caption\"> <p>By loading the video, you agree to YouTube's privacy policy.<br><a href=\"https:\/\/policies.google.com\/privacy?hl=en&amp;gl=en\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Learn more<\/a><\/p> <p><a class=\"_brlbs-btn _brlbs-icon-play-white\" href=\"#\" data-borlabs-cookie-unblock role=\"button\">Load video<\/a><\/p> <p><label><input type=\"checkbox\" name=\"unblockAll\" value=\"1\" checked> <small>Always unblock YouTube<\/small><\/label><\/p> <\/div> <\/div> <\/div><div class=\"borlabs-hide\" data-borlabs-cookie-type=\"content-blocker\" data-borlabs-cookie-id=\"youtube\"><script type=\"text\/template\">PHA+PGlmcmFtZSBzcmM9Imh0dHBzOi8vd3d3LnlvdXR1YmUtbm9jb29raWUuY29tL2VtYmVkL051N0FyN2djZ3VRIiB3aWR0aD0iNTYwIiBoZWlnaHQ9IjMxNSIgZnJhbWVib3JkZXI9IjAiIGFsbG93ZnVsbHNjcmVlbj0iYWxsb3dmdWxsc2NyZWVuIj48L2lmcmFtZT48L3A+<\/script><\/div><\/div>\n<h2>Shortcode Commands<\/h2>\n<p><strong>Text can be conditionally displayed by using the following commands:<\/strong><\/p>\n<ul>\n<li>[[if field-tags=option1]] conditional text [[\/if]] = shows text if option 1 is selected<\/li>\n<li>[[if example!=yes]] to show text if this option is not selected<\/li>\n<li>[[if example=abc,def]] to show text if one of the options is selected<\/li>\n<li>[[if example=abc+def]] to show text if all options are selected (also semicolon could make sense)<\/li>\n<li>[[if example=yes OR example2=yes]] to show text if either condition is matched<\/li>\n<li>[[if example=yes AND example2=yes]] to show text if both conditions are matched<\/li>\n<li>[[if example is empty]] to show text if field is empty<\/li>\n<li>[[if example is not empty]] to show text if field is not empty<\/li>\n<\/ul>\n<h2>Shortcode Styling<\/h2>\n<p>In order to use any of the shortcodes in html elements such as links (for example &lt;a href=&#8221;[[SHORTCODE]]&#8221;&gt;) you need to add style=raw (for example &lt;a href=&#8221;[[SHORTCODE style=raw]]&#8221;&gt;). Otherwise the link will not work.<\/p>\n<h3>Single-Select &amp; Multi-Select-Boxes<\/h3>\n<p>Single-Select and Multi-Select-Boxes can be styled as:<\/p>\n<ul>\n<li>Comma separated list using style=comma or if you do not select a style<\/li>\n<li>Numbered list using style=ol<\/li>\n<li>Unordered list usgin style=ul<\/li>\n<\/ul>\n<p>To style the lists use the style= in your shortcode like this [[example-checkbox style=ul]]<\/p>\n<div style=\"display: none;\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Shortcode Use [[field-name]] to display fields from required tasks. Important: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"video","meta":[],"faq_category":[80],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Use Shortcodes - CloneDesk.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/clonedesk.com\/en\/faq-items\/how-to-use-shortcodes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use Shortcodes - CloneDesk.com\" \/>\n<meta property=\"og:description\" content=\"Shortcode Use [[field-name]] to display fields from required tasks. Important: [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/clonedesk.com\/en\/faq-items\/how-to-use-shortcodes\/\" \/>\n<meta property=\"og:site_name\" content=\"CloneDesk.com\" \/>\n<meta property=\"article:modified_time\" content=\"2020-07-27T09:26:16+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/clonedesk.com\/en\/faq-items\/how-to-use-shortcodes\/\",\"url\":\"https:\/\/clonedesk.com\/en\/faq-items\/how-to-use-shortcodes\/\",\"name\":\"How to Use Shortcodes - CloneDesk.com\",\"isPartOf\":{\"@id\":\"https:\/\/clonedesk.com\/en\/#website\"},\"datePublished\":\"2020-07-27T09:21:56+00:00\",\"dateModified\":\"2020-07-27T09:26:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/clonedesk.com\/en\/faq-items\/how-to-use-shortcodes\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/clonedesk.com\/en\/faq-items\/how-to-use-shortcodes\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/clonedesk.com\/en\/faq-items\/how-to-use-shortcodes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/clonedesk.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FAQs\",\"item\":\"https:\/\/clonedesk.com\/en\/faq-items\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Use Shortcodes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/clonedesk.com\/en\/#website\",\"url\":\"https:\/\/clonedesk.com\/en\/\",\"name\":\"CloneDesk.com\",\"description\":\"Automate your Business\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/clonedesk.com\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Use Shortcodes - CloneDesk.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/clonedesk.com\/en\/faq-items\/how-to-use-shortcodes\/","og_locale":"en_US","og_type":"article","og_title":"How to Use Shortcodes - CloneDesk.com","og_description":"Shortcode Use [[field-name]] to display fields from required tasks. Important: [&hellip;]","og_url":"https:\/\/clonedesk.com\/en\/faq-items\/how-to-use-shortcodes\/","og_site_name":"CloneDesk.com","article_modified_time":"2020-07-27T09:26:16+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/clonedesk.com\/en\/faq-items\/how-to-use-shortcodes\/","url":"https:\/\/clonedesk.com\/en\/faq-items\/how-to-use-shortcodes\/","name":"How to Use Shortcodes - CloneDesk.com","isPartOf":{"@id":"https:\/\/clonedesk.com\/en\/#website"},"datePublished":"2020-07-27T09:21:56+00:00","dateModified":"2020-07-27T09:26:16+00:00","breadcrumb":{"@id":"https:\/\/clonedesk.com\/en\/faq-items\/how-to-use-shortcodes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/clonedesk.com\/en\/faq-items\/how-to-use-shortcodes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/clonedesk.com\/en\/faq-items\/how-to-use-shortcodes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/clonedesk.com\/en\/"},{"@type":"ListItem","position":2,"name":"FAQs","item":"https:\/\/clonedesk.com\/en\/faq-items\/"},{"@type":"ListItem","position":3,"name":"How to Use Shortcodes"}]},{"@type":"WebSite","@id":"https:\/\/clonedesk.com\/en\/#website","url":"https:\/\/clonedesk.com\/en\/","name":"CloneDesk.com","description":"Automate your Business","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/clonedesk.com\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/clonedesk.com\/en\/wp-json\/wp\/v2\/avada_faq\/2091"}],"collection":[{"href":"https:\/\/clonedesk.com\/en\/wp-json\/wp\/v2\/avada_faq"}],"about":[{"href":"https:\/\/clonedesk.com\/en\/wp-json\/wp\/v2\/types\/avada_faq"}],"author":[{"embeddable":true,"href":"https:\/\/clonedesk.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clonedesk.com\/en\/wp-json\/wp\/v2\/comments?post=2091"}],"version-history":[{"count":0,"href":"https:\/\/clonedesk.com\/en\/wp-json\/wp\/v2\/avada_faq\/2091\/revisions"}],"wp:attachment":[{"href":"https:\/\/clonedesk.com\/en\/wp-json\/wp\/v2\/media?parent=2091"}],"wp:term":[{"taxonomy":"faq_category","embeddable":true,"href":"https:\/\/clonedesk.com\/en\/wp-json\/wp\/v2\/faq_category?post=2091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}