• I have several WordPress sites. Some are still 1.5x, while others are 2.0x. I love WordPress! That said, here’s the problem…

    I copied a ton of posts from my 1.5 blogs into one of my 2.0 blogs. The copied posts display just fine, but when I look at them in the editor, all the <p> tags are mysteriously gone! ARgh.

    For my overall formatting options, I have the visual editor turned off, as well as XHTML correction. I can write my own valid code thank you very much. Why did WordPress 2 strip all the <p> tags from the posts I copied over? Now I have utter inconsistency in my blog posts.

    I found the plugin called “Text Control”. With it I can use the “unformatted” option (disables wpautop?), but it doesn’t “give back” the stripped <p> tags.

    Other than the obvious solution of spending hours finding and copying all the 1.5 posts back into the new 2.0x blog, is there any way to repair this <p> tag massacre?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Had you hand-coded the tags?

    You know, if you enter two line breaks (press enter twice) in your post, WP will make paragraphs for you.

    I see it like this. WordPress is trying hard to make valid code from whatever crazy stuff inexperienced users put in there. It’s not perfect. But you can also do a couple of things. Turn off the visual editor, or click the html button to insert your code. If you still have a problem, I suggest it’s time to take it up with the developers. Or look for a suitable plugin.

    note: I edited this. why? well, you’ll guess if you keep reading.

    Turn off the visual editor, and click the html button to insert your code

    Hmm. There might be something wrong with my install, but IF the wysiwyg animal is turned off – where is the “html button”???

    ok, how about an ‘or’ instead. ??

    oh, I was reminded of a flag in Options > Writing. Look for the option that invalid nesting of xhtml. Perhaps that’s the bad boy you want.

    That would make sense ??
    However, often people complain here that if the wysiwyg is on and they edit something in the html box – after closing it… the wysiwyg will “over-write” their code.

    What I always say: want to use your code? Throw out the wysiwyg and you’ll keep your sanity ??

    actually, I should address that last point of yours. when I use the html button to insert or modify code, I immediately save the post. If I do further edits in the visual editor, well, it only make sense that it will be reformatted. I wonder if this is what’s happening to some people.

    That’s an interesting point! Since I don’t really use the wysiwyg, I didn’t experiment with it – but what you just described makes a lot of sense. I should keep that in mind as an advice when users complain about lost edits. Thanks!

    Same problem here, at least that wysiwyg editor wipes out <p> tags and doesn’t allow what it believes to be invalid spaces between lines. Is it too smart? twinscards.com/blog

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘I want my <p> tags back!’ is closed to new replies.