19 April 2013

Get WordPress’s categories widget to validate

Because WordPress adds a rel attribute to links in the default categories widget, posts or pages using the widget do not validate as HTML5. Although HTML5 validation is still a work in progress and subject to change, this little function will get rid of those rels and get you the green tick you so desire:

Add this to functions.php