{"id":3296921,"date":"2012-12-21T01:34:57","date_gmt":"2012-12-21T01:34:57","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/displays-php-code\/"},"modified":"2016-08-20T19:22:44","modified_gmt":"2016-08-20T19:22:44","slug":"displays-php-code","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/displays-php-code\/","title":{"rendered":"Displays PHP Code"},"content":{"rendered":"<p>I have a script that uses a GET variable. If there is no GET variable ( mysite.com\/widget\/ ) it displays what I would expect. If I do use it though, ( mysite.com\/widget\/?id=5 ) then it displays all the PHP code, including the [insert_php] parts. It also works fine if I use a made up GET name like mysite.com\/widget\/?madup=5.  <\/p>\n<p>I put the code in the HTML section of the page, not the View part, and the PHP code works fine if I put it in it&#8217;s own file and execute it. Any idea what could be wrong?<\/p>\n<p>https:\/\/wordpress.org\/extend\/plugins\/insert-php\/<\/p>\n","protected":false},"template":"","class_list":["post-3296921","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3296921","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\/3296921\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=3296921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}