This function makes it impossible to display multiple images next to each other in a post, as it inserts line breaks in between each one. This fixed the problem, I’m really glad you found it, I was looking for it for a while and couldn’t find it.
It took me a while to find your post also, I was looking for something to do with line breaks and img tags, I didn’t realize that this one massive function handles all of this stuff.
The only difference now is that it’s now in functions-formatting.php inside the wp-includes (in wp mingus).
This post is definitely most useful. I was having an issue where kept showing up in my posts when I was doing a (using plugin exec_php) and this completely solved the problem.
is this something that can be updated for the latest version of wordpress – I can’t seem to find the
function wpautop($pee, $br=1) string in order to replace it – wordpress seems to want to delete all of my and tags plus puts in extra spaces in the wysiwyg interface in order to have a valid tag – any help is greatly appreciated. I’m running the TinyMCE advanced.
I am running WP 2.7.1 and needed to remove extra line breaks after images…
So I applied this change from $br=1 to $br=0
But now all the content is just one long line of text…
Even where the WYSIWYG editor shows the lines with te correct formatting, still the text in the post is displayed flat..
Any idea how to solve this?
ok, I found the solution!
I still use $br = 1.
I changed the definition of $allblocks in wpautop function (defined in wp-includes/formatting.php).
I removed the “input” from the expression, and now I don’t have any extra line breaks before this tag (I guess this can be done for any of the tags defined there)
An avid fan of business, education, technology and finance. I lead a lean, highly focussed and capable team of Java Back End developers and Front End developers through a maze of complex software wizardry to fulfill the web maintenance needs of a large chemical manufacturer. As per Myers-Briggs Personality Types, I am an ESTJ. I pride in a project completed on time and according to plan. My hobbies include all kinds of technology, anything that I can taste and anything that goes fast or flies in the air. I like to read business books and comics in my spare time.
This function makes it impossible to display multiple images next to each other in a post, as it inserts line breaks in between each one. This fixed the problem, I’m really glad you found it, I was looking for it for a while and couldn’t find it.
It took me a while to find your post also, I was looking for something to do with line breaks and img tags, I didn’t realize that this one massive function handles all of this stuff.
The only difference now is that it’s now in functions-formatting.php inside the wp-includes (in wp mingus).
This post is definitely most useful. I was having an issue where kept showing up in my posts when I was doing a (using plugin exec_php) and this completely solved the problem.
is this something that can be updated for the latest version of wordpress – I can’t seem to find the
function wpautop($pee, $br=1) string in order to replace it – wordpress seems to want to delete all of my and tags plus puts in extra spaces in the wysiwyg interface in order to have a valid tag – any help is greatly appreciated. I’m running the TinyMCE advanced.
I am running WP 2.7.1 and needed to remove extra line breaks after images…
So I applied this change from $br=1 to $br=0
But now all the content is just one long line of text…
Even where the WYSIWYG editor shows the lines with te correct formatting, still the text in the post is displayed flat..
Any idea how to solve this?
ok, I found the solution!
I still use $br = 1.
I changed the definition of $allblocks in wpautop function (defined in wp-includes/formatting.php).
I removed the “input” from the expression, and now I don’t have any extra line breaks before this tag (I guess this can be done for any of the tags defined there)