Title: post_ID string broken
Last modified: August 18, 2016

---

# post_ID string broken

 *  Resolved [mikecherim](https://wordpress.org/support/users/mikecherim/)
 * (@mikecherim)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/post_id-string-broken/)
 * Hello all,
 * I have a weird sitation I can’t figure out. On the comments pages I have a validation
   error (XHTML 1.0 Strict) becuase an ID begins with a number instead of a letter.
   The reason I am getting this error is because somewhere in the scripting the 
   string is broken. So while everything works fine, I don’t like having a validation
   error and want to fix it.
 * Here is the error:
    ———————————— # Line 63, character 28:
 * <div class=”post” id=”post-
    ^ Error: value of attribute id must be a single 
   token # Line 65, character 1:
 * 17″><h2 class=”dot”><a href=”[http://www&#8230](http://www&#8230);.
 * ————————————
 * Does anyone know where in the script file this break might be so I can find it
   and fix it. I scoured index.php and comments.php and couldn’t find a thing. I
   therefore suspect the the problem is deeper, as in where the ID/permalink is 
   generated.
 * Ref. Site: [http://www.ccassociates.com/blog/?p=17](http://www.ccassociates.com/blog/?p=17)
 * In advance, thank you any answers I can get.
    Sincerely,
 * Mike Cherim
    [http://green-beast.com](http://green-beast.com)

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

 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/post_id-string-broken/#post-273385)
 * try looking at single.php
 * -tg
 *  Thread Starter [mikecherim](https://wordpress.org/support/users/mikecherim/)
 * (@mikecherim)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/post_id-string-broken/#post-273399)
 * Hello tg,
 * Right you are. I found the physical break in the code.
 * This line…
    <div class=”post” id=”post-<?php the_ID(); ?><h2 class=”dot”>…
 * Was like this:
    <div class=”post” id=”post- <?php the_ID(); ?><h2 class=”dot”
   >…
 * Thank you very much. I just need to ask the client to replace single.php on their
   server and all will be right as rain. I
    already validated the change on a mirror
   copy. Didn’t need to, as soon as I saw it I knew.
 * I appreciate your help.
    Sincerely, Mike Cherim

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

The topic ‘post_ID string broken’ is closed to new replies.

## Tags

 * [Post_ID](https://wordpress.org/support/topic-tag/post_id/)
 * [scripting](https://wordpress.org/support/topic-tag/scripting/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [mikecherim](https://wordpress.org/support/users/mikecherim/)
 * Last activity: [20 years, 7 months ago](https://wordpress.org/support/topic/post_id-string-broken/#post-273399)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
