{"id":7311511,"date":"2016-04-23T14:41:07","date_gmt":"2016-04-23T14:41:07","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/shortcode-support-for-widgets\/"},"modified":"2016-08-31T16:50:07","modified_gmt":"2016-08-31T16:50:07","slug":"shortcode-support-for-widgets","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/shortcode-support-for-widgets\/","title":{"rendered":"Shortcode support for widgets"},"content":{"rendered":"<p>Hi<\/p>\n<p>I wanted to add a Twitter feed to a text widget using a shortcode but it seems your theme doesn&#8217;t support this. For now I have added some code to the theme&#8217;s functions.php file but I realise this will be lost when you bring out an upgreade. Would you perhaps consider adding the code yourself as I&#8217;m sure people would find it useful? The code is as follows:<\/p>\n<p>add_filter(&#8216;widget_text&#8217;, &#8216;do_shortcode&#8217;);<\/p>\n<p>many thanks<\/p>\n","protected":false},"template":"","class_list":["post-7311511","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7311511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7311511\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7311511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}