Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   Unwanted <br> before each <input> field? (http://forum.bytesforall.com/showthread.php?t=13155)

billc108 Mar 5, 2011 12:01 AM

Unwanted <br> before each <input> field?
 
I'm not sure if this is an Atahualpa thing or a WordPress thing... I figured I'd start here and broaden the search for an answer to the WP forums if needed.

I'm building a form at <http://directory.sustainablesources.org/get-listed/>, and something is inserting a <br> before every <input> field. (Sorry, you have to be logged in to see the form. Feel free to use "sstest" for both username and pass.)

I've got Unfiltered MU plugin on it, so it should theoretically be showing my code as I entered it:

<strong>Contact Name: </strong><input type=text .....

etc. No line breaks anywhere between the field name and the input field. Instead, it's displaying in firebug as:

<strong>Contact Name: </strong>
<br>
<input type=text .....

Any ideas? Is there an better "don't mess with my code" plugin than Unfiltered MU?

Thanks.

juggledad Mar 5, 2011 03:34 AM

WordPress has a habit of adding is some extra html (try putting this in a post ' hello this<h2>is an H2</h2> and this is not' and you will get three lines)

For example, Atahualpa sets up some info for the comments form, then it calls the WordPress function 'comment_form()' to actually build the form.

There are lots of complaints about the fact that WordPress adds extra <br>'s and <p>'s into code. It's especially bad when you use the HTML editor and expect to see what you coded.

billc108 Mar 6, 2011 11:07 AM

That's what I was afraid I'd hear.

So, any workarounds?

billc108 Mar 6, 2011 11:26 AM

I think I found a way out of this:

http://codex.wordpress.org/Function_Reference/wpautop


All times are GMT -6. The time now is 09:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.