Rich Snippet Code Examples

Between the purchase date of the plugin and today pretty much time has passed? No problem. Here you can see the actual code snippets that can be installed as examples in the Rich Snippet WordPress Plugin. PLUS: You can find new ones as well! ;)

Syntax for Organization Logos

According to this blog entry, Google now supports schema.org markup for organization logos. You can use this syntax to show your logo in search results. But please note that Google “maybe” uses this image for the homepage. This doesn’t mean that it will work. If tested this a view times and for me Google never showed the logo in search results.

Schema.org Organization Logo Attributes

XHTML

1

2

3

4

<div itemscopeitemtype="http://schema.org/Organization">

<a itemprop="url"href="[url]">My Organization Website</a>

<img itemprop="logo"src="[logo]" />

</div>

Alternatively you can the following (hiding logo and link to the public):

XHTML

1

2

3

4

<span itemscopeitemtype="http://schema.org/Organization">

<meta itemprop="url"content="[url]" />

<meta itemprop="logo"content="[logo]" />

</span>

You can then use it like this in your posts or pages:

XHTML

1

2

3

4

<div itemscopeitemtype="http://schema.org/Organization">

<a itemprop="url"href="[url]">Home</a>

<img itemprop="logo"src="[logo]" />

</div>

No public rating

You can also use the rating without displaying anything to the public:

Just replace the code above with the original sourcecode of the rating shortcode and that’s it. Please note that Google does not like hidden things. So it is not sure that Google will display this rating on search results.

No public address

If you don’t want to show the address to the public, use this code for the address shortcode: