Title: Text editor changes Paypal code
Last modified: August 22, 2016

---

# Text editor changes Paypal code

 *  Resolved [Jess](https://wordpress.org/support/users/jcull76/)
 * (@jcull76)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/text-editor-changes-paypal-code/)
 * When pasting Paypal code for a Buy Now button with multiple options into the 
   text editor (not visual), WordPress adds extra `<select>` tags between the option
   values.
 * Affected code directly from Paypal:
 *     ```
       <tr><td><input type="hidden" name="on0" value="Fall Con Registration">Fall Con Registration</td></tr><tr><td><select name="os0">
       	<option value="Registration">Registration $80.00 USD</option>
       	<option value="Sponsor/Adult Registration">Sponsor/Adult Registration $50.00 USD</option>
       	<option value="Youth Staff Registration">Youth Staff Registration $60.00 USD</option>
       	<option value="Bus Fee">Bus Fee $65.00 USD</option>
       </select> </td></tr>
       ```
   
 * Affected code once I save or switch to the Visual editor and back again:
 *     ```
       <td><input name="on0" type="hidden" value="Fall Con Registration" />Fall Con Registration</td>
       </tr>
       <tr>
       <td>
       <select name="os0"><option value="Registration">Registration $80.00 USD</option></select>
       <select name="os0"><option value="Sponsor/Adult Registration">Sponsor/Adult Registration $50.00 USD</option></select>
       <select name="os0"><option value="Youth Staff Registration">Youth Staff Registration $60.00 USD</option></select>
       <select name="os0"><option value="Bus Fee">Bus Fee $65.00 USD</option></select></td>
       </tr>
       ```
   
 * This makes multiple drop downs appear on the button instead of one drop down 
   from which a user selects one option.
 * The only plugin I have that should make any difference is TinyMCE Advanced, and
   deactivating that does not change this behavior.
 * I have not had this problem until about a week ago, when I assumed the code was
   wrong on Paypal’s end. I was able to delete the unwanted tags with no problem
   then. Today, however, deleting the extra `<select>` tags doesn’t stick – they
   keep coming back. Yes, I’m getting the opening and closing tags when I delete.
   And I’ve double checked – Paypal’s code is fine on their end. The change happens
   in the Text Editor.
 * It also happens on different sites with different configurations – I’ve tried
   the same code on three separate sites. The behavior is the same for both 3.9.1
   and 3.9.2. I’m don’t know about 3.9 as I don’t have any sites running that version
   or earlier.
 * I have to be able to use the Visual Editor on a post with Paypal code in it! 
   Any ideas what’s going on here??
 * **Edit to add:**
 * There is a [bug report ](https://core.trac.wordpress.org/ticket/28217)on this,
   but the unintelligible comments say that it is “fixed” without telling how to
   fix it. Little help?

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

 *  [janet4now](https://wordpress.org/support/users/janet4now/)
 * (@janet4now)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/text-editor-changes-paypal-code/#post-5181415)
 * You can try this route instead: [http://www.wpbeginner.com/wp-tutorials/how-to-add-a-shortcode-in-wordpress/](http://www.wpbeginner.com/wp-tutorials/how-to-add-a-shortcode-in-wordpress/)
 *  Thread Starter [Jess](https://wordpress.org/support/users/jcull76/)
 * (@jcull76)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/text-editor-changes-paypal-code/#post-5181459)
 * I suppose that might be an okay short term solution, but what I really need to
   know is how to deal with the patch that supposedly exists on Trac? Can’t find
   instructions anywhere as to what to do with the information on the bug report.
   Because this is definitely a bug that needs fixing!!
 *  Thread Starter [Jess](https://wordpress.org/support/users/jcull76/)
 * (@jcull76)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/text-editor-changes-paypal-code/#post-5181630)
 * Found a workable solution besides short codes (which totally work, but with the
   number of these I have to post, my functions file would get insane!):
 * Take out line breaks between the `<option> </option>` lines, and the `<select
   >` tags don’t appear.
 * Still a pain, but at least it works. Marking this topic resolved, but the bug
   still exists.
 *  Thread Starter [Jess](https://wordpress.org/support/users/jcull76/)
 * (@jcull76)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/text-editor-changes-paypal-code/#post-5181738)
 * Update: The most recent upgrade for WordPress seems to have squashed this bug.

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

The topic ‘Text editor changes Paypal code’ is closed to new replies.

## Tags

 * [paypal](https://wordpress.org/support/topic-tag/paypal/)
 * [select tag](https://wordpress.org/support/topic-tag/select-tag/)
 * [text editor](https://wordpress.org/support/topic-tag/text-editor/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Jess](https://wordpress.org/support/users/jcull76/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/text-editor-changes-paypal-code/#post-5181738)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
