Forums

[Plugin: Exec-PHP] Bug : automatically add </br> or </p> to my code... (3 posts)

  1. 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/

  2. 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...

  3. 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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags