• My comments_number() function got an error. It says
    Database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘AND comment_approved = ‘1” at line 1]
    SELECT COUNT(*) FROM giros_comments WHERE comment_post_ID = AND comment_approved = ‘1’
    I suppose it is because of the misuse of the_ID() function, as I didn’t found any information anywhere about how to use the ID of the posts? My permalinks, category links and archive links don’t work also, I think because of the same problem. I don’t know whether I must use the_ID() or not, and how should I use it?
    Any kind of help would be much appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Usage of post ID’ is closed to new replies.