{"id":5486,"date":"2012-11-04T21:19:04","date_gmt":"2012-11-04T21:19:04","guid":{"rendered":"http:\/\/www.oik-plugins.com\/?page_id=5486"},"modified":"2020-12-01T19:12:29","modified_gmt":"2020-12-01T19:12:29","slug":"smart-shortcodes","status":"publish","type":"page","link":"https:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/smart-shortcodes\/","title":{"rendered":"smart shortcodes"},"content":{"rendered":"In partnership with the principle of developing <a href=\"http:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/lazy-shortcodes\/\" text=\"lazy\">lazy<\/a> code is the principle of developing smart code for smart shortcodes.\r\n\r\n<blockquote><strong>Smart shortcodes<\/strong> understand the context in which they\u2019re being executed and adjust their behaviour accordingly.<\/blockquote><!--more-->\r\n\r\nMany of the lazy smart shortcodes in oik plugins exhibit <strong>smart<\/strong> behaviour of one form or another. Examples:\r\n<ul>\r\n\t<li>Smart shortcodes provide help, syntax, example(s), generated code snippets and extended help. See <a title=\"bw_codes - display the currently available shortcodes\" href=\"http:\/\/www.oik-plugins.com\/oik_shortcodes\/bw_codes\/\">bw_codes &#8211; display the currently available shortcodes<\/a><\/li>\r\n\t<li>Smart shortcodes can apply context sensitive values. <a class=\"bw_code bw_posts\" href=\"https:\/\/www.oik-plugins.com\/oik-shortcodes\/bw_posts\/bw_posts\" title=\"Link to help for shortcode: bw_posts\"><span>[<\/span>bw_posts]<\/a> alters its behaviour depending upon the <code>post_type<\/code> in which it&#8217;s being used. This is also true of many of the dynamic shortcodes in the oik base plugin.<\/li>\r\n\t<li>Smart shortcodes can control when a shortcode will get expanded. You may not want a shortcode to be expanded when it&#8217;s being used in a title, but do want it expanded when it&#8217;s being used in the content of a page, an excerpt or widget.<\/li>\r\n\t<li>Smart shortcodes can also apply special processing to remove any HTML from tooltips.<\/li>\r\n\t<li>AND obviously, smart shortcodes reuse functionality that has already been developed. This is the main reason for many of the oik plugins being dependent upon oik.<\/li>\r\n<li>By definition lazy, smart shortcodes are implemented with code that is <strong>definitely NOT bloatware<\/strong>.<\/li>\r\n<\/ul>\r\n&nbsp;","protected":false},"excerpt":{"rendered":"<p>In partnership with the principle of developing <a href=\"http:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/lazy-shortcodes\/\" text=\"lazy\">lazy<\/a> code is the principle of developing smart code for smart shortcodes.<\/p>\n<blockquote><p><strong>Smart shortcodes<\/strong> understand the context in which they\u2019re being executed and adjust their behaviour accordingly.<\/p><\/blockquote>\n","protected":false},"author":1,"featured_media":0,"parent":2068,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"letters":[534],"class_list":{"0":"post-5486","1":"page","2":"type-page","3":"status-publish","5":"letters-s","6":"entry"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>smart shortcodes - [oik] plugins.com<\/title>\n<meta name=\"description\" content=\"Smart shortcodes understand the context in which they\u2019re being executed and adjust their behaviour accordingly. They&#039;re more powerful and easier to use.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/smart-shortcodes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"smart shortcodes - [oik] plugins.com\" \/>\n<meta property=\"og:description\" content=\"Smart shortcodes understand the context in which they\u2019re being executed and adjust their behaviour accordingly. They&#039;re more powerful and easier to use.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/smart-shortcodes\/\" \/>\n<meta property=\"og:site_name\" content=\"[oik] plugins.com\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-01T19:12:29+00:00\" \/>\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:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/smart-shortcodes\/\",\"url\":\"https:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/smart-shortcodes\/\",\"name\":\"smart shortcodes - [oik] plugins.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.oik-plugins.com\/#website\"},\"datePublished\":\"2012-11-04T21:19:04+00:00\",\"dateModified\":\"2020-12-01T19:12:29+00:00\",\"description\":\"Smart shortcodes understand the context in which they\u2019re being executed and adjust their behaviour accordingly. They're more powerful and easier to use.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/smart-shortcodes\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/smart-shortcodes\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/smart-shortcodes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"About oik plugins &#8211; lazy smart shortcodes\",\"item\":\"https:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"smart shortcodes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.oik-plugins.com\/#website\",\"url\":\"https:\/\/www.oik-plugins.com\/\",\"name\":\"[oik] plugins.com\",\"description\":\"WordPress plugins and themes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.oik-plugins.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"smart shortcodes - [oik] plugins.com","description":"Smart shortcodes understand the context in which they\u2019re being executed and adjust their behaviour accordingly. They're more powerful and easier to use.","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:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/smart-shortcodes\/","og_locale":"en_US","og_type":"article","og_title":"smart shortcodes - [oik] plugins.com","og_description":"Smart shortcodes understand the context in which they\u2019re being executed and adjust their behaviour accordingly. They're more powerful and easier to use.","og_url":"https:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/smart-shortcodes\/","og_site_name":"[oik] plugins.com","article_modified_time":"2020-12-01T19:12:29+00:00","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/smart-shortcodes\/","url":"https:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/smart-shortcodes\/","name":"smart shortcodes - [oik] plugins.com","isPartOf":{"@id":"https:\/\/www.oik-plugins.com\/#website"},"datePublished":"2012-11-04T21:19:04+00:00","dateModified":"2020-12-01T19:12:29+00:00","description":"Smart shortcodes understand the context in which they\u2019re being executed and adjust their behaviour accordingly. They're more powerful and easier to use.","breadcrumb":{"@id":"https:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/smart-shortcodes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/smart-shortcodes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/smart-shortcodes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"About oik plugins &#8211; lazy smart shortcodes","item":"https:\/\/www.oik-plugins.com\/about-oik-plugins-lazy-smart-shortcodes\/"},{"@type":"ListItem","position":2,"name":"smart shortcodes"}]},{"@type":"WebSite","@id":"https:\/\/www.oik-plugins.com\/#website","url":"https:\/\/www.oik-plugins.com\/","name":"[oik] plugins.com","description":"WordPress plugins and themes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.oik-plugins.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/pages\/5486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/comments?post=5486"}],"version-history":[{"count":8,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/pages\/5486\/revisions"}],"predecessor-version":[{"id":16249,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/pages\/5486\/revisions\/16249"}],"up":[{"embeddable":true,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/pages\/2068"}],"wp:attachment":[{"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/media?parent=5486"}],"wp:term":[{"taxonomy":"letters","embeddable":true,"href":"https:\/\/www.oik-plugins.com\/wp-json\/wp\/v2\/letters?post=5486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}