Support » How-To and Troubleshooting » Unwanted <br /> before and after each entry!

Unwanted <br /> before and after each entry!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Anyone?

    Some previous threads that may or may not be exactly what you are looking for.

    Thanks, I’m currently testing both of those out right now 🙂

    Ok, I installed both plugins… and nothing happened. Can anyone give me an explanation of what purpose the above plugins serve?

    Also, can anyone tell me the purpose of the rogue <br>‘s?

    the short story — WordPress auto-formats all of your posts. All of them. It adds break-tags, paragraph-tags, smart-quotes, the whole shebang.

    It is default, and next to impossible to turn off. Unless you want to turn _everything_ off.

    Perhaps if we pooled our resources, we could bribe somebody to create a plugin. In the meantime, I am hoping to learn PHP someday, in the vain hope that I can shut the !@#$^&^! off myself.

    actually its all dealt with in 1.5 by the apply/add filters plugin hooks.

    “wpautop” is the one that formats the post to the paragraphs (I think).

    Currently the latest nightly seems broken, in that it doesn’t do it (tho it should). I’m debugging that as we speak.

    Basically tho you can comment out the lines:

    add_filter(‘the_content’, ‘convert_chars’);
    add_filter(‘the_content’, ‘wpautop’);

    in template-functions-post.php. That should disable that.

    That made WP accept < br / > in the posts… 🙂

    But the final 1.5 is otally different 🙁 is there a way to do something similiar in the 1.5 final?

    I want to use linebreaks in my posts, but it’s not possible :(.


    I just figured out something that might help you. I was having a problem… I needed to be able to post invalid code (long story). I found that wp-includes/default-filters.php is basically a list of filters each post/comment goes through. Just comment out the ones you don’t want…it worked for me.

    I’m brand new to WordPress, so I don’t think I can help with which ones you’ll need to comment out. Not sure if it’ll hurt anything, but I just commented out all filters that are applied to “the_content”.


Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Unwanted <br /> before and after each entry!’ is closed to new replies.