the_category() breaks XHTML Validation in 2.1
-
My theme’s archive page has this code to display the categories under which a post is filed:
<?php _e(‘Filed under:’); ?> <?php the_category(‘, ‘) ?> | <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?> <?php edit_post_link(‘Edit’, ‘ | ‘, ”); ?>
But the rendered page does not validate completely in XHTML but gives the following warning:
Filed under: Uncategorized
The error is that there is an extra quote mark at the end of the link. Is this an issue with my code or with the way WP generates the category link tags? And if it is, how do I fix it?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘the_category() breaks XHTML Validation in 2.1’ is closed to new replies.