{"id":289,"date":"2016-09-13T16:55:41","date_gmt":"2016-09-13T16:55:41","guid":{"rendered":"https:\/\/wiki.samuelchopard.ch\/?p=289"},"modified":"2020-05-03T18:47:17","modified_gmt":"2020-05-03T16:47:17","slug":"allowenable-shortcodes-in-widgets","status":"publish","type":"post","link":"https:\/\/samuelchopard.ch\/wiki\/library\/allowenable-shortcodes-in-widgets\/","title":{"rendered":"Allow\/enable shortcodes in widgets"},"content":{"rendered":"<p><!--more--><\/p>\n<p>Add the following code to the functions.php of your <a target=\"_blank\" href=\"https:\/\/samuelchopard.ch\/wiki\/library\/blank-child-theme\/\" rel=\"noopener noreferrer\" target=\"_blank\">child-theme<\/a>:<\/p>\n<pre class=\"EnlighterJSRAW\">add_filter('widget_text','do_shortcode');<\/pre>\n<p>Source: <a target=\"_blank\" href=\"http:\/\/www.wpbeginner.com\/beginners-guide\/15-most-annoying-things-about-wordpress-and-how-to-fix-them\/\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.wpbeginner.com\/beginners-guide\/15-most-annoying-things-about-wordpress-and-how-to-fix-them\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"Add the following code to the functions.php of your child-theme: add_filter('widget_text','do_shortcode'); Source: http:\/\/www.wpbeginner.com\/beginners-guide\/15-most-annoying-things-about-wordpress-and-how-to-fix-them\/","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[30,99,268,326],"class_list":["post-289","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-allow","tag-enable","tag-shortcakes","tag-widgets"],"_links":{"self":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/comments?post=289"}],"version-history":[{"count":2,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/289\/revisions"}],"predecessor-version":[{"id":55118,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/289\/revisions\/55118"}],"wp:attachment":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/media?parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/categories?post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/tags?post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}