Title: WordPress Stripping PayPal Form Script
Last modified: August 19, 2016

---

# WordPress Stripping PayPal Form Script

 *  Resolved [InHouse](https://wordpress.org/support/users/inhouse/)
 * (@inhouse)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wordpress-stripping-paypal-form-script/)
 * Hey guys, I’m trying to place code for a drop down menu and “Add to Cart” PayPal
   button for a very small shopping cart page within my WordPress site. The code
   is working perfectly when I wrote it out as a separate php page [here](http://useinhouse.com/CLCWordpress/CLC_ShoppingCart.php).
   When I paste the code into my WordPress page in (HTML view) and publish, the 
   form is all jumbled up and doesn’t function. Is there a better way to place this
   code? I really don’t want to have the shopping cart outside of my site. I tried
   adding “code” tags and “blockcode” tags but this isn’t having any effect. I’ve
   never messed with a page template or anything like that so I don’t know how to
   do that kind of thing. Can anyone help with this? Thanks in advance.
 * Site is currently [here](http://useinhouse.com/CLCWordpress/shop-online).

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

 *  Thread Starter [InHouse](https://wordpress.org/support/users/inhouse/)
 * (@inhouse)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wordpress-stripping-paypal-form-script/#post-2007636)
 * Ok, for anyone interested or having similar issues:
 * WordPress was definitely stripping some code (or at least leaving gaps) when 
   I pasted the script and form code in to the pae editor in HTML view so I had 
   to create a new page template for this Shopping page and add the script and form
   code there. Thanks to Chad for the code example to follow. I had never done that
   before or really had any idea how it should be done but it’s working perfectly.
 *  [heydasch](https://wordpress.org/support/users/heydasch/)
 * (@heydasch)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/wordpress-stripping-paypal-form-script/#post-2008005)
 * Hey man, were you going to paste that code in? Just asking b/c I’m encountering
   this same issue now. We’re operating WP multi-sites w/ a custom theme so adding
   a new template page will be tricky.
 * Definitely something to try though if we get to that point. Thanks for posting
   back!
 *  Thread Starter [InHouse](https://wordpress.org/support/users/inhouse/)
 * (@inhouse)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/wordpress-stripping-paypal-form-script/#post-2008006)
 * [@heydasch](https://wordpress.org/support/users/heydasch/), sorry, I never intended
   to post any code. I re-read my post and what I meant was that Chad from PayPal
   showed me some [example code](http://capleswebdev.com/paypal/addtocart7.php) 
   to use as a starting point for my add to cart buttons, etc.
 * Check out [this post](https://www.x.com/thread/50996) on the PayPal forums if
   you want help with that stuff. I ended up writing all the button html and script
   in a new page template to avoid WordPress from stripping code. You could also
   use a shortcode that simply calls a bunch of code. I’ve used [Shortcoder](http://wordpress.org/extend/plugins/shortcoder/)
   before but there are others. I am in no way an expert so I use all the help I
   can get with plugins, etc. Hope I’ve helped! The shopping cart is still in development
   and is [currently here](http://useinhouse.com/CLCWordpress/shop-online/) if you
   want to use it as an example.

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

The topic ‘WordPress Stripping PayPal Form Script’ is closed to new replies.

## Tags

 * [code stripped](https://wordpress.org/support/topic-tag/code-stripped/)
 * [paypal](https://wordpress.org/support/topic-tag/paypal/)
 * [php form](https://wordpress.org/support/topic-tag/php-form/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [InHouse](https://wordpress.org/support/users/inhouse/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/wordpress-stripping-paypal-form-script/#post-2008006)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
