{"id":7724731,"date":"2012-11-02T05:25:35","date_gmt":"2012-11-02T05:25:35","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/shortcode-doesnt-work-1\/"},"modified":"2016-09-02T20:15:40","modified_gmt":"2016-09-02T20:15:40","slug":"shortcode-doesnt-work-1","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/shortcode-doesnt-work-1\/","title":{"rendered":"Shortcode doesn&#039;t work"},"content":{"rendered":"<p>I followed the instructions by adding the code to my template file:<\/p>\n<pre><code>&lt;?php add_shortcode(&#039;cleanprint_print_button&#039;, &#039;get_cleanprint_print_button&#039;);\n    function get_cleanprint_print_button() {\n       if( function_exists(&#039;cleanprint_add_print_button&#039;) ){\n          return cleanprint_add_print_button();\n       }\n    }\n?&gt;<\/code><\/pre>\n<p>and the shortcode to the page I want the buttons on:<\/p>\n<p><code>[cleanprint_print_button]<\/code><\/p>\n<p>but the page just shows the shortcode as it appears in the editor, no buttons.  The buttons appear if I active ALL PAGES to have the buttons, but I only want 1 page to have the buttons.<\/p>\n","protected":false},"template":"","class_list":["post-7724731","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7724731","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\/7724731\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7724731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}