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. ]
<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.
The topic ‘WP changing HTML code for recurring donation’ is closed to new replies.