Support » Fixing WordPress » HTML Input is changed in an ‘stupid’ way

  • I am new to wordpress and tried to convert part of my old html side ( to wordpress.

    The old side is completely selfmade html+css based. So for example a linklist looks like this:

    <a name="sprache"></a>
    <div class="floatitem">
    <div class="linkitem">
    <ul class="linkitem">
    <li><a href=""> (englisch-deutsch)</a></li>
    <li><a href=""> (französisch-deutsch)</a></li>
    <a href="#top"><IMG src="/images/squareup2.png" width="11" height="11" border="0"></a></div></div>

    which I changed to
    <a name="sprache"></a>
    <li><a href=""> (englisch-deutsch)</a></li>
    <li><a href=""> (französisch-deutsch)</a></li>

    but, wordpress changed this to:

    <a name="sprache"></a>
    <h3><a name="sprache"></a>Sprache</h3>
    <a name="sprache"></a>
    <div><a name="sprache"></a>
    <ul><a name="sprache"></a>
    <li /><a href=""> (englisch-deutsch)</a>
    <li><a href=""> (französisch-deutsch)</a></li>

    and that is really stupid.

    Questions: Is there a way to get around such problems. And are there special rules of ‘valid’ html for wordpress ?

    Just curious.
    Matthias Pospiech

Viewing 15 replies - 1 through 15 (of 18 total)
  • not enough info. where exactly is wordpress “changing” this.

    I typed this in at the editor with html view. After saving this text and later opening this for editing this text again the html code was changed to what I posted.


    I am sorry. but I do not see the connection between editing Pages and changing the theme.


    But perhaps I’m misunderstanding what you wish to accomplish.

    Other options:

    Options -> Writing. Disable “WordPress should correct invalidly nested XHTML automatically”

    Use the HTML button from the Wysiwyg editor to add html code.

    Turn off the Wysiwyg editor. Users -> Your Profile. Scroll to the bottom and uncheck “Use the visual rich editor when writing”

    convert part of my old html side ( to wordpress.

    That struck me as theme related.


    the roles manager plugin give you access to a setting for unfiltered html. I haven’t tested it though.

    there is also a setting in each user profile for using the visual editor, which you might need off.

    and if those don’t do it, you can turn off filtering functions by adding something like this to functions.php in your theme:

    remove_filter("the_content", "wpautop");

    cruise the wordpress file functions-formatting.php for to see what other filters you might be able to turn off.

    I am having this same problem, and have been wondering if it is a bug.

    Here’s what happens. I am editing one of my Pages in the visual rich editor, and I insert an anchor into the text. At first it works fine.

    But if, at any time thereafter, I enter the HTML editor when editing the page, then close it after making any changes by clicking the Update button…

    …suddenly there are multiple copies of the [a name=][/a] tag scattered throughout my text. The copies appear to be placed after every [p] tag, and also between every [/p] and the following [p], from the original tag on down to the bottom of the page.

    My preference when writing and editing posts and pages is to use the visual rich editor primarily, dropping down to the HTML source when necessary. But if tinyMCE is going to fight me by changing and rearranging and screwing up what I’ve manually put into the HTML source editor, it defeats the purpose of having that option in the first place. So I suppose it’s time for me to figure out how to disable the visual rich editor altogether.

    I hear you. First thing I did when I upgraded to WP 2.0 was to turn off the tinyMCE “visual rich” editor. I like to have complete control over my code.

    you could also, of course, disable the “correct bad xhtml” option at options -> writing.

    Yes, I thought that would fix the problem too.

    It doesn’t.

    It fixes some, but yeah… not all. I had issues with list nesting and such and unchecking that helped.

    Now I just turn the damned thing off (as already noted above). Problems solved.

    Hey Handy – congrats on your promotion!

    Hmm. I’ve found an unexpected downside to turning tinyMCE off.

    Now I can edit the HTML and it stays edited…

    …except for the [p] and [br] tags, which don’t show up at all! Gaaah!

    Any way to see these and make sure they’re correct in the plain-jane editor? (They showed up just fine in the HTML source screen in the fancy visual editor thingy, even if they did funny things once I clicked the Update button.)


    yeah, the last one also drives me nuts.

    What I don’t really understand is why both settings are not truly separate like this:

    – WYSIWYG: includes auto-correction

    – base editor: allows FULL manipulation of html

    Right now WP competes with TinyMCE, both types of editors are not fish not meat, both change input, both allow raw html input, both manipulate input on saving, and the user has NIL chance to define what will happen.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘HTML Input is changed in an ‘stupid’ way’ is closed to new replies.