{"id":4796122,"date":"2014-04-10T21:01:36","date_gmt":"2014-04-10T21:01:36","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/import-javascript-with-shortcode-exec-php\/"},"modified":"2016-08-21T19:13:33","modified_gmt":"2016-08-21T19:13:33","slug":"import-javascript-with-shortcode-exec-php","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/import-javascript-with-shortcode-exec-php\/","title":{"rendered":"Import JavaScript with Shortcode Exec PHP"},"content":{"rendered":"<p>For some reasons I&#8217;ve to include a javascript file into a post, but WordPress is always destroying the script with a lot of <strong>&lt;p&gt;<\/strong>.<\/p>\n<p>For this I include the file via require and return the variable to output what&#8217;s inside the file.<\/p>\n<p>This is very nasty, and I don&#8217;t know why.<br \/>\n&#8220;Disable wpautop&#8221; is checked.<\/p>\n<p>Any idea?<\/p>\n<p>https:\/\/wordpress.org\/plugins\/shortcode-exec-php\/<\/p>\n","protected":false},"template":"","class_list":["post-4796122","topic","type-topic","status-closed","hentry","topic-tag-javascript","topic-tag-js"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4796122","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\/4796122\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4796122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}