• I am new to wordpress and tried to convert part of my old html side (www.matthiaspospiech.de) 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">
    <h3>Sprache</h3>
    <div class="linkitem">
    <ul class="linkitem">
    <li><a href="https://dict.leo.org/?lang=de">https://www.leo.org/ (englisch-deutsch)</a></li>
    <li><a href="https://dico.leo.org/?lp=frde">https://www.leo.org/ (franz?sisch-deutsch)</a></li>
    </ul>
    <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>
    <h3>Sprache</h3>
    <div>
    <ul>
    <li><a href="https://dict.leo.org/?lang=de">https://www.leo.org/ (englisch-deutsch)</a></li>
    <li><a href="https://dico.leo.org/?lp=frde">https://www.leo.org/ (franz?sisch-deutsch)</a></li>
    </ul>
    </div>

    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="https://dict.leo.org/?lang=de">https://www.leo.org/ (englisch-deutsch)</a>
    <li><a href="https://dico.leo.org/?lp=frde">https://www.leo.org/ (franz?sisch-deutsch)</a></li>
    </ul>
    <div>

    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 3 replies - 16 through 18 (of 18 total)
  • WP uses different ‘filters’, some of which can be turned off in the admin interface. Now it would be good if we would have full control over all filters, but currently that is only possible by editting the WP code directly, or by using a special plugin (which I don’t think exists yet).

    The filters can be turned off by commenting them out in wp-includes/default-filters.php and their functions are defined in wp-includes/functions-formatting.php. You are probably looking for the wpautop one.

    Thanks for the wpautop reference. Googling that led me to a couple of promising plugins. Trouble is, one of them has no documentation at all, and the other confuses me (and hasn’t been updated for a while either).

    Anyone have any insight into either:

    Disable wpautop Plugin:
    https://www.urbangiraffe.com/plugins/disable-wpautop/

    Text Control:
    https://dev.wp-plugins.org/wiki/TextControl

    For that matter, I am having a hard time finding a good thorough reference on wpautop itself and exactly what it does and how it works.

    Which makes it very hard, for instance, to make sense of the rumblings I hear about having to go back and fix old posts if you turn wpautop completely off.

    in simplistic terms (the only terms I know for this topic!) wpautop runs through the entry just before it displays, and tidies up the output. with the plugin activated, it doesn’t do that. wpautop doesn’t touch the entry itself. it only filters the output each and every time it’s displayed. so yeah, turn off the disable wpautop plugin, and that filtering process happens again, which may result in the output not being as desired.

    You can also do it on a theme by theme basis by putting the necessary code in the functions.php of a theme. add to, or create functions.php in your theme, and make sure it contains:

    remove_filter(“the_content”, “wpautop”);

    that needs to be inside <?php ?>

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