Title: WP changing HTML code for recurring donation
Last modified: August 21, 2016

---

# WP changing HTML code for recurring donation

 *  [team wphelp](https://wordpress.org/support/users/team-wphelp/)
 * (@team-wphelp)
 * [12 years ago](https://wordpress.org/support/topic/wp-changing-html-code-for-recurring-donation/)
 * I followed the instructions from Paypal on how to create a recurring donation
   button on a website. Using the HTML code their steps generate (including edits
   they ask you to make) have worked in the past.
 * However, I need to update the code and button. Whenever I try to do so, as soon
   as I hit “update” or even switch to the “visual” tab and then back over to “text”
   tab, changes are saved, but in all the lines that have options for the recurring
   payment, Worpress edited the lines.
 * eg. —
 * I input –
 * _[ Moderator note: Code fixed, please wrap code in [backticks or use the code button](http://codex.wordpress.org/Forum_Welcome#Posting_Code).]_
 *     ```
       <tr><td><select name="t3">
       	<option value="D">Daily </option>
       	<option value="W">Weekly </option>
       	<option value="M">Monthly </option>
       	<option value="Y">Yearly </option>
       </select> </td></tr>
       <tr><td>How many times would you like this donation to recur? (including this payment)</td></tr><tr><td><select name="srt">
       <option value="0">Never End</option>
       <option value="2">2</option>
       <option value="3">3</option>
       <option value="4">4</option>
       <option value="5">5</option>
       <option value="6">6</option>
       <option value="7">7</option>
       <option value="8">8</option>
       <option value="9">9</option>
       <option value="10">10</option>
       <option value="11">11</option>
       <option value="12">12</option>
       </select> </td></tr>
   
       and it converts it to ---
   
       <tr>
       <td>How often would you like this donation to recur?</td>
       </tr>
       <tr>
       <td><select name="t3"><option value="D">Daily</option></select>
       <select name="t3"><option value="W">Weekly</option></select>
       <select name="t3"><option value="M">Monthly</option></select>
       <select name="t3"><option value="Y">Yearly</option></select></td>
       </tr>
       <tr>
       <td>How many times would you like this donation to recur? (including this payment)</td>
       </tr>
       <tr>
       <td><select name="srt"><option value="0">Never End</option></select>
       <select name="srt"><option value="2">2</option></select>
       <select name="srt"><option value="3">3</option></select>
       <select name="srt"><option value="4">4</option></select>
       <select name="srt"><option value="5">5</option></select>
       <select name="srt"><option value="6">6</option></select>
       <select name="srt"><option value="7">7</option></select>
       <select name="srt"><option value="8">8</option></select>
       <select name="srt"><option value="9">9</option></select>
       <select name="srt"><option value="10">10</option></select>
       <select name="srt"><option value="11">11</option></select>
       <select name="srt"><option value="12">12</option></select></td>
       </tr>
       ```
   
 * If I go back in and manually delete “<select name=”srt”> and </select> on each
   line, to match what I original input, as soon as I hit update or switch back 
   and forth between “visual” and “text” tabs/ views, WordPress edits it again.
 * This worked before however, no problem.

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

 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years ago](https://wordpress.org/support/topic/wp-changing-html-code-for-recurring-donation/#post-4956485)
 * Please post ‘code’ in ticks only, [per forum rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Your code may not be being displayed here as pasted as the forum software may
   have stripped some code.
 * Also, per forum rules, please use [Pastebin](http://pastebin.com/) to link us
   to long code examples (over ten lines).
 * Thanks.
 *  [webbrewers](https://wordpress.org/support/users/webbrewers/)
 * (@webbrewers)
 * [12 years ago](https://wordpress.org/support/topic/wp-changing-html-code-for-recurring-donation/#post-4956508)
 * Try the “Preserved HTML Editor Markup” plug in….
 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years ago](https://wordpress.org/support/topic/wp-changing-html-code-for-recurring-donation/#post-4956586)
 * Or, do not switch to the visual editor.

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

The topic ‘WP changing HTML code for recurring donation’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/wp-changing-html-code-for-recurring-donation/#post-4956586)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
