Title: Import JavaScript with Shortcode Exec PHP
Last modified: August 21, 2016

---

# Import JavaScript with Shortcode Exec PHP

 *  Resolved Anonymous User 5580574
 * (@anonymized-5580574)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/import-javascript-with-shortcode-exec-php/)
 * For some reasons I’ve to include a javascript file into a post, but WordPress
   is always destroying the script with a lot of **<p>**.
 * For this I include the file via require and return the variable to output what’s
   inside the file.
 * This is very nasty, and I don’t know why.
    “Disable wpautop” is checked.
 * Any idea?
 * [https://wordpress.org/plugins/shortcode-exec-php/](https://wordpress.org/plugins/shortcode-exec-php/)

Viewing 1 replies (of 1 total)

 *  Thread Starter Anonymous User 5580574
 * (@anonymized-5580574)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/import-javascript-with-shortcode-exec-php/#post-4796249)
 * Don’t mind, it was the theme and a special entry in the functions.php and has
   nothing to with this plugin.

Viewing 1 replies (of 1 total)

The topic ‘Import JavaScript with Shortcode Exec PHP’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shortcode-exec-php.svg)
 * [Shortcode Exec PHP](https://wordpress.org/plugins/shortcode-exec-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcode-exec-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcode-exec-php/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcode-exec-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcode-exec-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcode-exec-php/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [js](https://wordpress.org/support/topic-tag/js/)

 * 1 reply
 * 1 participant
 * Last reply from: Anonymous User 5580574
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/import-javascript-with-shortcode-exec-php/#post-4796249)
 * Status: resolved