Wordpress Contact Information Widget

Posted on

I looked everywhere for a simple Wordpress widget to display hCard-formatted contact information, but to no avail. So I whipped one up right-quick and now I’m making it available to the world. Here you go world, just download the code, paste it into your functions.php file and you’re good to go.

21 Feb 2010 Fixes

  • Changed <address> to <div>. [The address element should not be used for a physical address][L3]. Damn hypersemantics!
  • Changed tel type from local to voice. local is an invalid tel type, don’t know where I got local, weird.

[L3]: see http://microformats.org/wiki/hcard-faq#Should_I_use_ADDRESS_for_hCards