WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a issue with wp_get_archives because it breaks my Html5 validation.
Inside validator I get this message: Bad value archives for attribute rel on element link: Not an absolute IRI. The string archives is not a registered keyword or absolute URL. My archive links looks like this:
http://robertpeic.com/wordpress_template/2013/01/' />
http://robertpeic.com/wordpress_template/2012/12/' />

I am guessing that those errors are happening because spaces inside my links, now if I change my Doctype into Strict my page validates fine.
Can someone please tell me how can I validate my page as HTML5? Thank you!!

My wp_get_archives looks like this:wp_get_archives('type=monthly&format=link'); Validator link

share|improve this question
up vote 0 down vote accepted

I would just remove the wp_get_archives() call from the document head altogether. Why even have it there?

Otherwise, this isn't really WordPress-specific. rel="archives" is valid for <link> tags in HTML5.

share|improve this answer
If I remove it than my Archive Widget won't work. – Dejo Dekic Jan 30 '13 at 18:41
What Archive Widget? – Chip Bennett Jan 30 '13 at 18:47
Ups sorry it work's fine and validates... I meant sidebar archive widget. Thank you for your time and help. Much appreciated!!! – Dejo Dekic Jan 30 '13 at 18:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.