zoulou33
Member
Posted 2 years ago #
Everyone can test it, enter into your wordpress page:
<?php echo '<label>Test</label><input type="radio" value="Test" />';?>
Save and go the page and for inot the code, you see :
<label>Test</label><br />
<input type="radio" value="Test" />
Notice the added <br /> that ruined the css layout...
http://wordpress.org/extend/plugins/exec-php/
zoulou33
Member
Posted 2 years ago #
Ok I find that it was wordpress the problem... you have to install the plugin disabel-wpautop toprevent worpress to format your code...
Brianair
Member
Posted 2 years ago #
The wpautop filter changes BR and P tags.
To force a line break, use this:
<br clear="none" />
Valid? I don't know, but wpautop ignores it. That's pretty easy relief!