• I have a problem with the html validation. WordPress gives an id name to every single post that starts with a number:

    “<div class=”post” id=”84″>”

    Apparently, the id name MUST begin with a letter, not a number:

    “It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit.”

    Any tips on how to fix this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • it’s actually not wordpress doing this – it is your theme’s author who messed this up.

    open index.php (and probably single.php, and maybe archive.php, category.php ….) and search for <div class="post" id="<?php the_ID(); ?>

    then directly after id=” insert a letter; sorted 😉

    Thread Starter gorkreg

    (@gorkreg)

    Thanks alchymyth. I changed what you said and it works. Why I didn’t think about it before, I don’t know.

    The theme’s author who messed up it’s actually me 😉 But it’s my first time trying this so I guess I learned something there.

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘HTML validation. Problem with id name.’ is closed to new replies.