Title: Make WP STOP adding to my CODE!!!!
Last modified: August 20, 2016

---

# Make WP STOP adding to my CODE!!!!

 *  Resolved [Hollysfolly](https://wordpress.org/support/users/hollysfolly/)
 * (@hollysfolly)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/make-wp-stop-adding-to-my-code/)
 * Running Atpualpa on 3.1.2 (can I also add that everytime I download a new version,
   there’s another new version within a week? HATE THAT!)
 * I use wordpress to create RSS feeds for my ever changing product line. I use 
   Mals-e for my cart.
 * My a script I need for an item with lots of color choices in my Cart code should
   be this:
 * <script type=”text/javascript”>
    function tally(that){ result=0; for(i=0;i<that.
   form.elements.length;i++) { if (that.form.elements[i].name.indexOf(“product[]”)
   >-1){result += that.form.elements[i].value-0;} }that.form.qty.value = result;}
   </script>
 * **But WP adds a </that> on the last line! **
 * <script type=”text/javascript”>
    function tally(that){ result=0; for(i=0;i<that.
   form.elements.length;i++) { if (that.form.elements[i].name.indexOf(“product[]”)
   ><p>-1){result += that.form.elements[i].value-0;} }that.form.qty.value = result;}
   </p></that></script> </p>
 * Considering there is no <that> in the beginning… why add this code?? And how 
   do I work around it???

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [fonglh](https://wordpress.org/support/users/fonglh/)
 * (@fonglh)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/make-wp-stop-adding-to-my-code/#post-2158146)
 * where are you putting that code? as a page or post in the admin interface?
 *  Thread Starter [Hollysfolly](https://wordpress.org/support/users/hollysfolly/)
 * (@hollysfolly)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/make-wp-stop-adding-to-my-code/#post-2158167)
 * Sorry, it is a post.
 * Each post is a new product on my [site.](http://hollysfolly.com)
 *  [fonglh](https://wordpress.org/support/users/fonglh/)
 * (@fonglh)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/make-wp-stop-adding-to-my-code/#post-2158169)
 * that won’t work by default because the editor sanitizes script tags for security
   reasons.
 * you could try the solution below.
    [http://wordpress.stackexchange.com/questions/3458/how-to-configure-wordpress-to-be-able-to-use-script-tag-inside-posts](http://wordpress.stackexchange.com/questions/3458/how-to-configure-wordpress-to-be-able-to-use-script-tag-inside-posts)
 *  Thread Starter [Hollysfolly](https://wordpress.org/support/users/hollysfolly/)
 * (@hollysfolly)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/make-wp-stop-adding-to-my-code/#post-2158171)
 * Yeah, mostly, it’s not a problem… but this one listing is driving me nuts!
 * I was wondering if anyone has tried this: [http://wordpress.org/extend/plugins/ps-disable-auto-formatting/](http://wordpress.org/extend/plugins/ps-disable-auto-formatting/)
 *  Thread Starter [Hollysfolly](https://wordpress.org/support/users/hollysfolly/)
 * (@hollysfolly)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/make-wp-stop-adding-to-my-code/#post-2158174)
 * Fonglh, I’ve actually read that solution before but… I’m not super savvy and 
   can’t figure out WHERE to paste the code. I get which document but WHERE IN IT
   do I paste???
 *  Thread Starter [Hollysfolly](https://wordpress.org/support/users/hollysfolly/)
 * (@hollysfolly)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/make-wp-stop-adding-to-my-code/#post-2158176)
 * So I found a list of functions in the functions.php and stuck it in…. IT DIDN’T
   WORK. It’s still embellishing the code. GRRRR!
 *  Thread Starter [Hollysfolly](https://wordpress.org/support/users/hollysfolly/)
 * (@hollysfolly)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/make-wp-stop-adding-to-my-code/#post-2158230)
 * Has anyone had any success using java in a post???
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/make-wp-stop-adding-to-my-code/#post-2158232)
 * Have you tried this plugin?
 * [http://wordpress.org/extend/plugins/tinymce-advanced/](http://wordpress.org/extend/plugins/tinymce-advanced/)
 *  Thread Starter [Hollysfolly](https://wordpress.org/support/users/hollysfolly/)
 * (@hollysfolly)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/make-wp-stop-adding-to-my-code/#post-2158233)
 * Yes, I actually have that plugin… I don’t think it enables javascript in a post.(
   Oops, left the script part out of my question! Sorry!)
 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/make-wp-stop-adding-to-my-code/#post-2158234)
 * There is this, [http://www.ooso.net/index.php/inline-js](http://www.ooso.net/index.php/inline-js)
   
   And this, [http://codex.wordpress.org/Using_Javascript](http://codex.wordpress.org/Using_Javascript)
 *  Thread Starter [Hollysfolly](https://wordpress.org/support/users/hollysfolly/)
 * (@hollysfolly)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/make-wp-stop-adding-to-my-code/#post-2158239)
 * Found an AWESOME plugin that works like a dream! My page is live and working!!!
 * Plugin: [http://wordpress.org/extend/plugins/specific-cssjs-for-posts-and-pages/?topic_id=20079](http://wordpress.org/extend/plugins/specific-cssjs-for-posts-and-pages/?topic_id=20079)
 * Working on this post: [http://hollysfolly.com/2011/06/30/coffee-beans-chocolates/](http://hollysfolly.com/2011/06/30/coffee-beans-chocolates/)

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Make WP STOP adding to my CODE!!!!’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 3 participants
 * Last reply from: [Hollysfolly](https://wordpress.org/support/users/hollysfolly/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/make-wp-stop-adding-to-my-code/#post-2158239)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
