This wraps the comment author link with itemprop=”creator” microdata. It will be wrapped correctly with itemprop=”creator”, and itemscope itemtype=’http://schema.org/Person, then itemprop=’name’. This goes in your functions.php. This will apply to the comment author on each comment in your WordPress blog.
Posts Tagged “Structured Data”
Tutorials about how to add structured data to WordPress and non-WordPress sites.
If you are using microdata instead of microformats, you may notice that WordPress automatically adds the class “hentry” to the post_class. This may create errors for you in the Google Structured Data Testing Tool. This Google toole will think you are using microformats since the “hentry” class gets added to your posts. So, even if … Read more →
Add structured data to your SyntaxHighlighter Evolved code snippets. This adds the “SoftwareSourceCode” schema type to your code snippets if you’re using the SyntaxHighlighter Evolved WordPress plugin (by Alex Mills/Viper007Bond and Automattic). Schema.org has replaced the previous “Code” schema type with the new “SoftwareSourceCode” schema type. The following code will wrap your SyntaxHighlighter Evolved code … Read more →
This shows you how to add microdata to WP Family Tree (“WP Family Tree” WordPress Plugin by Arvind Shah). I add microdata for the ‘Person’ item type. Then I add the ‘Person’ properties ( itemprop ) of name, birth date, death date, parent, children, sibling, and image. These changes will take effect on single family … Read more →
This code adds structured data from Schema.org to your WordPress thumbnails (a.ka. featured images). It will add the attribute itemprop:image inside the <img> tag of the featured image. This simple method doesn’t require you to add anything to your functions.php file. You just pass the parameter along in the “the_post_thumbnail” template tag. This is done … Read more →