You are here:  » hReview Microformat


hReview Microformat

Submitted by cascadeclimbers on Tue, 2010-10-05 23:03 in

Came across this great article today in the SitePoint newsletter which I thought would be worth sharing here. I've noticed that some of the other review sites have been very good about getting their star ratings to show up on Google searches, and I think this is how they do it. Worth the read!

http://blogs.sitepoint.com/2010/10/05/including-microformats-in-web-development/

Submitted by support on Wed, 2010-10-06 07:30

Thanks for the reference, Jon!

Should be straight forward to plumb into your html/ratings.php. The only part that would require PHP coding I think is the rating. In the default template, the star rating is displayed using the star graphics from the /images/ folder with this code;

<?php print tapestry_stars($review["rating"],""); ?>

So to surround this by the rating tag, that could be replaced with:

<?php print "<abbr title='".$review["rating"]."' class='rating'>".tapestry_stars($review["rating"],"")."</abbr>"?>

Cheers,
David.
--
PriceTapestry.com