Jim R Posted January 21, 2013 Share Posted January 21, 2013 This is code being used to direct PayPal to create a subscription. It's going on a PHP page used in WordPress. The first section of code is what shows up on my end locally. The bottom set is what shows up when I view the source code in the browser. It's turning the element of each comment that closes the comment into –, and it adds line breaks. It's a theme issue, not a WordPress issue, as I've used this code on previous themes and another site. It still works in each instance. The theme producer is working with me on this, but his initial effort was replacing the style.css file. This is what I'm pasting: <!-- Customizes Prices, Payments & Billing Cycle --> <!--<input type="hidden" name="amount" value="8.00" />--> <input type="hidden" name="src" value="1" /> <input type="hidden" name="srt" value="" /> <input type="hidden" name="sra" value="1" /> <!--<input type="hidden" name="a1" value="0" />--> <!--<input type="hidden" name="p1" value="0" />--> <!--<input type="hidden" name="t1" value="D" />--> <input type="hidden" name="a3" value="8.00" /> <input type="hidden" name="p3" value="1" /> <input type="hidden" name="t3" value="M" /> </form> This is what shows up: <!--<input type="hidden" name="amount" value="8.00" />–><br /> <input type="hidden" name="src" value="1" /><br /> <input type="hidden" name="srt" value="" /><br /> <input type="hidden" name="sra" value="1" /><br /> <!--<input type="hidden" name="a1" value="0" />–><br /> <!--<input type="hidden" name="p1" value="0" />–><br /> <!--<input type="hidden" name="t1" value="D" />–><br /> <input type="hidden" name="a3" value="8.00" /><br /> <input type="hidden" name="p3" value="1" /><br /> <input type="hidden" name="t3" value="M" /><br /> (There was an initial issue of the extra line breaks causing white space problems. His style.css solved that. I've only been using this theme for a couple of weeks. I put the original style.css back in to see if the PayPal buttons worked. They didn't.) Quote Link to comment https://forums.phpfreaks.com/topic/273415-closing-elements-of-comments-being-stripped-outwordpress/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.