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

1 Answer 1


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.

  • If I remove it than my Archive Widget won't work.
    – Dejo Dekic
    Commented Jan 30, 2013 at 18:41
  • What Archive Widget? Commented Jan 30, 2013 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
    Commented Jan 30, 2013 at 18:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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