Tag Archives: microformats

A Standard to Specify a Canonical Short Link

There has been a small push to create a standard way for a web page to specify a preferred short link for use in places like Twitter. Something like the rel="canonical" trick that tells search engines which page on your domain is the one that should be indexed. Basically, a meta tag to put in the page header, which could then be read by Twitter applications. The end goal is to help reduce the issue of “link splintering,” where everyone ends up linking to the same page with a different URL. (For instance, I could shorten a link to this page with Is.gd, then three others could create their own different Bit.ly links…)

One proposal is rev=”canonical”, but I really don’t I don’t like that option. This comment sums it up pretty well. Rev is too easily confused with rel, and is deprecated in HTML5 to boot. The “canonical” terminology also isn’t fitting, since it implies that the short URL is the preferred URL for the page (i.e. “the short link is preferred over the full one”) rather than an alternate link.

I found it interesting to learn that WordPress 3.0 is going to start automatically including something along the lines of this on permalink pages:

<link rel='shortlink' href='http://fantasyfolder.com?p=32' />

There will be hooks to override it with your own URL (so a plugin could place a single Bit.ly or YOURLS link there on publication), but the URL is irrelevant for the purpose of this discussion. The rel='shortlink' part is what interests me. I think it’s the perfect term to use for this scenario.

I think, whether you use WordPress or not, rel="shortlink" is what you should go with. (If you’re worried about controlling short links, at least.)

Google hreview Rich Snippets in WordPress

Have you ever noticed that some product review results in Google display a little 5-star rating under the title? What you’re seeing is something that Google calls a “Rich Snippet” — some metadata pulled from a microformat embedded on the page the result links to.

Google supports a few microformats in their search results. vCard data can be displayed in some cases, upcoming events can be shown for theaters and event centers, star ratings can be displayed for reviews, etc..

Joost de Valk has put together a tutorial on how to add the hreview microformat to your WordPress site, giving Google the option to show your editorial ratings on SERPs for any products you may review. I’ve implemented it over at Fantasy Folder, as I often write book reviews there, and I had been planning on adding editorial star ratings anyway.

In his previous post here on Yoast, Frederick explained why you should use Microformats to increase the CTR from Google. In the comments of that post, people were asking if there are plugins to easily implement this in your theme. While those are probably a bit hard to do, I though it would be good to explain how I implemented hreview in my theme.

Implementing hreview in your WordPress theme [Yoast]