WordPress.org

Ready to get started?Download WordPress

Forums

<p></p> and <br /> in posts not working? (51 posts)

  1. hikarimoro
    Member
    Posted 6 years ago #

    i searched the support forum and have found nothing(i posted about this in another thread but it was left unresolved)

    basically what's wrong is that when I'm posting in WordPress whether it be editing an old post or posting a new post; paragraph and break tags in particular won't work at all if I put them in. So if I put or <p></p> what happens is, when I save it, WordPress deletes them for I don't know what reason u_u.

    I really want to know how to possibly fix this, because I didn't have this problem in versions before 2.3. Or if this can't be fixed, I would like to at least know why WordPress is deleting/not-picking-up/registering <p></p> and (because it's seriously annoying when I want a paragraph or a break and it won't go through)

    help would be much appreciated n_n

  2. shelle
    Member
    Posted 6 years ago #

    I'm using WP 2.1 too but am facing the same problem. The way I resolve it is by adding a dot (.) and styling it white (same color as my background) so that it'll appear as a <br>. I can't find a solution to this either T_T

  3. justinratwebtek
    Member
    Posted 6 years ago #

    Need the URL of your blog so I can view the source. Also, have to looked at your site in multiple browsers to see if its a rendering problem?

  4. d0k
    Member
    Posted 6 years ago #

    I've the same problem on momboo.net/blog
    It's not due to css or rendering problem, I think it's something that involve your escaping procedure or the way you use to check the content of post.
    I save and continue editing and I see my <br> and my <p> </p> disappear, also if I edit a post without modifying the content and when i save the post all <br> and <p></p> disappears.
    One more advice for people dealing with this problem, try with <p> &nbsp; </p> and good luck

    Ehm, my page is on wp mu, not 2.1 but similar i thought

  5. trappermark
    Member
    Posted 6 years ago #

    If someone wants to check yet another site that is doing this, mine is peterennsonline.com. I would be glad to send someone the CSS stylesheet if they want to take a look at it.

  6. uncladchef
    Member
    Posted 6 years ago #

    I am also having this problem.

  7. timestorm82
    Member
    Posted 6 years ago #

    I've just discovered that this problem seems to stem from Apple's Safari browser.

    If you are using Safari and have this problem, try using FireFox instead. I just did this and resolved this issue.

  8. shelle
    Member
    Posted 6 years ago #

    hi, i don't think it's a browser problem... coz i'm using firefox and IE, and the problem doesn't go away... even when i tried adding the " " but it still doesn't work :(

  9. shelle
    Member
    Posted 6 years ago #

    i meant, i tried adding &nbsp in between the <p> and </p> but everything gets erased after i save the post...

  10. kmessinger
    Volunteer Moderator
    Posted 6 years ago #

    Try Windows Live Writer. It is free so it is worth the try to see if your problems go away. It is definitely better than the WP editor.

    Usually though, from what I have been reading here, some non-compliant plug in causes the problem.

  11. purple2d
    Member
    Posted 6 years ago #

    I am also getting this on my site. I can't go back and edit posts without wiping all my text formatting.
    I dont think its a plug in because I turned them all off and its still happening.
    Has anyone figured this out yet?

  12. purple2d
    Member
    Posted 6 years ago #

    Will upgrading to 2.3.1 version fix this?

  13. Avaz Ibragimov
    Member
    Posted 6 years ago #

    purple2d,

    No, it won't. I'm running 2.3.1 version and I still have this problem :/

  14. vnalupta
    Member
    Posted 6 years ago #

    I'm having the same problem. I'm guessing the issue is a combination of the recent Safari upgrade and the recent WP upgrade. I can't find a logical solution right now, but I've switched to Opera on my mac and it actually KEEPS the formatting instead of deleting it. This leads me to believe that the problem is browser-related, but firefox isn't woring for me either.

    Try Opera and see if that works out for you, and then maybe we'll get to a better solution later.

  15. hikarimoro
    Member
    Posted 6 years ago #

    coming back to this again.
    I'm still having this problem. and honestly it bothers me D:

    So what I know right now is that it's not a browser problem. I've tried it on IE, Firefox, Opera, Safari, been on a mac been on a pc. and nothing has changed. Whenever I put
    or <p> where the line breaks are supposed to be in my post. they automatically disappear after I save the post.

    Oddly enough, when I switched to the WP default(or classic) theme, the <p> and
    were all automatically put in. This is incredibly odd because I've always been able to use my old themes on the new WP upgrades. Anyway, when i tried editing the default 2.3 theme to how it i wanted it to be with my original theme (and this took hours) it still didn't work. (the <p> and
    ended up being deleted again).
    And just in case it's still not clear what's wrong here's some screenshots:
    post formatting should look like this:
    http://img527.imageshack.us/img527/2152/defaultthemets5.png
    but instead it ends up like this:
    http://img527.imageshack.us/img527/6628/mythemesw3.png
    --
    and as others have stated. this also (i don't think) isn't a css problem.

  16. WEBARMY
    Member
    Posted 6 years ago #

    I only have on of the problems you face when posting in Safari (Mac). Firefox enables my posts to have paragraphs and breaks.

    But I have noticed comments do not have paragraphs although they do break lines.

    http://www.thedailydoug.com if you want to see what I mean.

  17. BlackFlagg
    Member
    Posted 6 years ago #

    I am also having this problem. It is not the browser, but something in WP. Adding . in the same color as the background was a great idea!

    Please fix this. It seems to do it to me when I use pictures in my post.

  18. here
    Member
    Posted 6 years ago #

    I also continue to have similar problems, and have begun to collect information on related issues in the codex at:

    http://codex.wordpress.org/How_Wordpress_Processes_Entry_Text

    Even using the plugins listed, wordpress continues to process and remove elements from posts. This is most definitely /not/ a browser issue, but one of how wordpress saves and processes text from the editor.

    Any help appreciated!

  19. cequirk
    Member
    Posted 6 years ago #

    My frustration with this incredibly stupid problem discourages me from blogging in general and with wordpress, specifically. I am so annoyed with it.

    I use firefox.

  20. whatswiththis
    Member
    Posted 6 years ago #

    WORDPRESS, this is a STUPID problem! Why should I upgrade if you can't even fix this silly issue????
    Now we must go digging through code to fix this. Why will you remove BR and P tags - are you CRAZY???

    So fix it or pay the price, users will leave your software to use something that actually POST CODE correctly...

  21. jblifestyles
    Member
    Posted 6 years ago #

    same problem here... using firefox and wp 2.3.2

    http://gostep.org

    ANY help would be appreciated.. I've used the "." same as background before, but I stopped when I realized that it was being picked up on mobile, google, and trackbacks... therefore making me look like an amateur programmer (no offense).

  22. Maxaud
    Member
    Posted 6 years ago #

    I had a similiar problem and it turn'd out to be the style sheet for the theme that was preventing those from displaying how I'd like.

    Check there, hope that helps!

  23. macsoft3
    Member
    Posted 6 years ago #

    >WORDPRESS, this is a STUPID problem! Why should I upgrade if you can't even fix this silly issue????

    I hate to read comments with no respect to WP developers.

    If you want to use a break, enter

    <br></br>

  24. onei0087
    Member
    Posted 6 years ago #

    So adding the <br></br> will work. Enter it in as code then save.

    However If you go back into edit your post it will remove it.

    I'd just like the WYSIWYG editor to WYG the post the I WYS.

  25. macsoft3
    Member
    Posted 6 years ago #

    Ahh... I see what you mean. I'm not 100% sure, but it looks like that depends on the web browser you are using. I simply want to edit the article directly with HTML code. So I just use a particular browser. If I use Firefox (Mac), I would have to click on the code button or something.

  26. jblifestyles
    Member
    Posted 6 years ago #

    I've tried in both firefox and explorer....pc user :( .. and it still strips it out. i've always had it as an intermittent problem, but since the upgrade to 2.3 from 2.2 it is not a constant issue

  27. Jeremy Clark
    Moderator
    Posted 6 years ago #

    You can disable the wysiwyg editor all together and just enter html code. If you look under the my profile link in your dashboard you see a checkbox for using the visual editor uncheck it.

  28. growbabygreen
    Member
    Posted 6 years ago #

    So there's no way to get nice paragraph breaks without going into the code?

  29. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    WordPress automatically handles paragraphing for you. Just hit ENTER when making posts. It will automatically wrap the paragraphs in P's and so forth.

    If you want a single BR, when using the visual editor, you hit shift-enter instead of enter. Done and done.

    Note that the non-visual editor is slightly different. There one enter = a BR, two = a paragraph break.

    But there's no real case where you should ever have to enter P tags manually. WordPress does not expect you to enter HTML code. It expects you to enter text. Just plain text. It will take care of formatting it. Some HTML is acceptable, like images and em and strong and so on, but there's no reason to put P's and such in manually. It'll do it for you. Let it.

  30. onei0087
    Member
    Posted 6 years ago #

    That is not whats happening. All of the blank line is stripped out between the Preview in WYSIWYG and the post itself.

    Pressing enter is stripping mine out. Having said that I realize it is working here and this uses the same coding...so clearly the problem is with my application.

    Anyone else having this problem using any WYSIWYG plugins?

Topic Closed

This topic has been closed to new replies.

About this Topic