WordPress.org

Ready to get started?Download WordPress

Forums

Unwanted <br /> before and after each entry! (9 posts)

  1. Bubs
    Member
    Posted 9 years ago #

    http://www.bubblessoc.net

    If you view my source you will notice that before and after each entry there is a break (
    )... is there anyway to get rid of this? I didn't put it there.

  2. Bubs
    Member
    Posted 9 years ago #

    Anyone?

  3. OtherMichael
    Member
    Posted 9 years ago #

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

  4. Bubs
    Member
    Posted 9 years ago #

    Thanks, I'm currently testing both of those out right now :)

  5. BubsatSchool
    Member
    Posted 9 years ago #

    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?

  6. OtherMichael
    Member
    Posted 9 years ago #

    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.

  7. DarkCryst
    Member
    Posted 9 years ago #

    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.

  8. Søren Hugger Møller
    Member
    Posted 9 years ago #

    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 :(.

  9. frankiejr
    Member
    Posted 9 years ago #

    SPIRI:

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

    .frankiejr

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.