Topic: W3C validation (XHTML 1.0 Transitional) - tips!
Hey again you lucky bunch.
I'm just going through my site and improving the validation at the moment. I thought I'd create a new thread to help with ideas for validation as and when I find them.
To start with, if you have some & symbols in your category names, like "Marketing & PR", like I do, then the page won't validate without them being turned into & codes.
1. open functions.php
2. find function get_categories()
3. inside the $categories array, find 'name' => $row['name'] and replace it with 'name' => htmlspecialchars($row['name'])
Enjoy.
Edited to change function name to the universal one, I'd used my own adapted function before.
Last edited by grubix (2011-04-20 12:55:38)