{"id":49,"date":"2026-11-10T04:22:47","date_gmt":"2026-11-10T04:22:47","guid":{"rendered":"https:\/\/wiki.designcorner.co.ke\/?dc_term=shortcode"},"modified":"2026-11-10T08:03:15","modified_gmt":"2026-11-10T08:03:15","slug":"shortcode","status":"publish","type":"dc_term","link":"https:\/\/wiki.designcorner.co.ke\/?dc_term=shortcode","title":{"rendered":"Shortcode"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What it is<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Shortcodes let plugins and themes place dynamic features, such as forms, galleries or search boxes, anywhere in content without writing code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why it matters for your business<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">They are convenient, but if the plugin providing a shortcode is removed, the raw code appears on your pages.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real-world example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Pasting \t<form class=\"dcw dcw-search\" role=\"search\" action=\"https:\/\/wiki.designcorner.co.ke\/\" method=\"get\">\n\t\t<label for=\"dcw-s-1\" class=\"screen-reader-text\">Search the knowledge base<\/label>\n\t\t<input id=\"dcw-s-1\" type=\"search\" name=\"s\" autocomplete=\"off\"\n\t\t\tplaceholder=\"Search or ask a question, e.g. why is my website slow?\"\n\t\t\trole=\"combobox\" aria-expanded=\"false\" aria-controls=\"dcw-s-1-r\" aria-autocomplete=\"list\">\n\t\t<input type=\"hidden\" name=\"dcw\" value=\"1\">\n\t\t<span class=\"dcw-search-hint\" aria-hidden=\"true\">\/<\/span>\n\t\t<span class=\"dcw-search-spin\" aria-hidden=\"true\"><\/span>\n\t\t\t\t<div class=\"dcw-results\" id=\"dcw-s-1-r\" role=\"listbox\" hidden><\/div>\n\t<\/form>\n\t onto any page shows this knowledge base&#039;s live search box.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Design Corner tip<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before removing a plugin, search your content for its shortcodes.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>A short code in square brackets, like [contact_form], that inserts a feature into a page.<\/p>\n","protected":false},"featured_media":0,"template":"","dc_letter":[24],"dc_topic":[33],"class_list":["post-49","dc_term","type-dc_term","status-publish","hentry","dc_letter-s","dc_topic-wordpress"],"_links":{"self":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term"}],"about":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/types\/dc_term"}],"version-history":[{"count":1,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/49\/revisions"}],"predecessor-version":[{"id":298,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/49\/revisions\/298"}],"wp:attachment":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=49"}],"wp:term":[{"taxonomy":"dc_letter","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_letter&post=49"},{"taxonomy":"dc_topic","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_topic&post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}