WordPress.org

Ready to get started?Download WordPress

Forums

I need help validating WordPress tags for www.bluesparc.com (14 posts)

  1. T2
    Member
    Posted 8 years ago #

    Al though I have been using WordPress in several websites for quite some time I have never been able to get my sits to validate XHTML mostly due to errors found in the WordPress ID tags. If anyone here could take a look at my code, and my validation it would be much appreciated. The website I am currently working on is http://www.bluesparc.com. I am currently running WP 1.2 on this site and understand that some code will not validate due to unconventional tags. I am mostly interested in getting my WP specific tags to validate (which have unconventional names, and spaces in their code). Thanks in advance for your feedback.

    Here are some examples of my problem: <h2 class="storytitle" id="post-<?php the_ID(); ?>">

    <h2 class="storytitle" id="post-<?php the_ID(); ?>">

  2. Kafkaesqui

    Posted 8 years ago #

    The w3 validator shows this for your h2 line:

    <h2 class="storytitle" id="post-&lt;?php the_ID(); ?&gt;">

    Where are you placing this code? In the template, or the post content? Basically I'm wondering why the tags are converting to character entities.

  3. T2
    Member
    Posted 8 years ago #

    I am placing the content in the template. That is why I don't understand the trouble I am having.

  4. Monika
    Member
    Posted 8 years ago #

    T2
    your " aren't correct,
    it looks like if you have per copy&paste copied the php code and your editor can't understand the correct "
    type the "
    maybe it helps

    lG
    Monika

  5. tomhanna
    Member
    Posted 8 years ago #

    and change the &gt ; to > and the &lt ; to < .

    Grrr...maybe it's more clear now.

  6. T2
    Member
    Posted 8 years ago #

    I didn't understand that last instruction.

  7. James
    Happiness Engineer
    Posted 8 years ago #

    I think he means to re-type the < and > symbols.

  8. James
    Happiness Engineer
    Posted 8 years ago #

    Also, please make sure that you are using a plain text editor and not a word processor. A list of plain text editors can be found here: http://codex.wordpress.org/Glossary#Text_editor

  9. T2
    Member
    Posted 8 years ago #

    ok sure I got that. thanks

  10. T2
    Member
    Posted 8 years ago #

    No Im using BBedit.

  11. tomhanna
    Member
    Posted 8 years ago #

    You might try just using the Dashboard Presentation Editor to fix these few problems.

  12. T2
    Member
    Posted 8 years ago #

    I can't believe I am so stupid!

  13. tomhanna
    Member
    Posted 8 years ago #

    I know the feeling! I think we all do. Don't sweat it.

  14. Monika
    Member
    Posted 8 years ago #

    T2
    you can't be stupid...
    because you have checked my instruction
    ;)

    I have a mantra:
    it's only an electronic machine, Monika,..be patient...
    it's only an electronic machine ,Monika
    be patient!!!
    ;)

    kindly regards
    Monika

Topic Closed

This topic has been closed to new replies.

About this Topic