Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

XHTML Validity Problem (Should be super-easy) WordPress



Getting this error as a result of my title tag:
Line 144, Column 7: document type does not allow element "title" here

Want to use the PHP in the title... how do I make this valid?

<?php wp_title('|',true,'right'); ?>
<?php bloginfo('name'); ?>
<meta http-equiv="content-type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
<meta name="description" content="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>" />
<meta name="keywords" content="" />

Answers (2)


Jurre Hanema answers:

You've got two <title>-tags in your <head>. Of course, only one is allowed, so the second <title> triggers this error.

Lucas Wynne comments:

Brain took a holiday, thank ya sir.


Luis Abarca answers:

Its because you have duplicate title tag, line 6 and 144 in your source