A Guide to Schema.org Markup for Rich Snippets

We are frequently asked how to get those nice looking search results with the additional information such as star rating and price like the example below:

These are called rich snippets and you get these by adding Schema markup to your content. Bing, Google and Yandex use this markup to present these rich snippets in their search results.

In this article we’ll cover:


Schema Markup in All in One SEO

All in One SEO outputs Schema.org markup using a format called JSON-LD. Below is a list of the markup we add on all Pages, Posts, Custom Post Types, Categories, Tags, Custom Taxonomies, Media Attachments, Date and Author Archives, as well as on the 404 page and search results page:

We also output markup for Google’s Knowledge Graph including:

In addition to the Schema markup above that’s available in both the Lite and Pro plugin, All in One SEO Pro customers can also add the following markup to their content:

You can find documentation on Configuring the Schema Settings in All in One SEO here.

Content Specific Markup

All in One SEO uses the following content specific information to generate our Schema markup:

  • The title of your Post, Page, Category or Tag
  • The SEO Description or the content (or post excerpt) from your Page or Post
  • The Featured Image and image caption from your Page or Post
  • The language set for your content (as specified in the HTML lang tag)
  • The categories and tags assigned to your Posts
  • The SEO Keywords assigned to your Posts
  • The Facebook profile for the author of your Page or Post (enabled using Show Facebook Author)
  • The Twitter profile or the author of your Page or Post (enabled using Show Twitter Author)

Testing Schema Markup

Bing, Google and Yandex each have tools to test Schema markup. Here are the links to these tools:

We are frequently asked how to get those nice looking search results with the additional information such as star rating and price like the example below:

Example of a rich snippet in Google search results

These are called rich snippets and you get these by adding Schema markup to your content. Bing, Google and Yandex use this markup to present these rich snippets in their search results.

Schema Markup in All in One SEO v3.x

All in One SEO outputs Schema.org markup using a format called JSON-LD. Below is a list of the markup we add on all Pages, Posts, Categories, Tags, Media Attachments, Date and Author Archives, as well as on the 404 page and search results page:

In addition, we output markup for Google's Knowledge Graph including:

You can control this schema by going to All in One SEO » General Settings » Schema Settings.

You can also enable our Schema markup for Custom Post Types and Custom Taxonomies by updating to version 4.x of All in One SEO.

Schema Markup not in All in One SEO v3.x

At this time, All in One SEO does not add markup for other types of rich snippets such as products. This is to avoid conflicting with markup output by other plugins. To add these types of rich snippets you need to use a plugin that is specific to the type of rich snippet you want.

For example, if you want markup for product pricing, ratings and in-stock information, then you would need to use an eCommerce plugin that specifically outputs Schema.org markup for products.

We plan to add support for additional types of rich snippets, where possible, and provide an API where users and developers can extend our markup for any post type or taxonomy.

Content Specific Markup

All in One SEO uses the following content specific information to generate our Schema markup:

  • The title of your Post, Page, Category or Tag
  • The SEO Description or the content (or post excerpt) from your Page or Post
  • The Featured Image and image caption from your Page or Post
  • The language set for your content (as specified in the HTML lang tag)
  • The categories and tags assigned to your Posts
  • The SEO Keywords assigned to your Posts
  • The Facebook profile for the author of your Page or Post (enabled using Show Facebook Author)
  • The Twitter profile for the author of your Page or Post (enabled using Show Twitter Author)

Testing Schema Markup

Bing, Google and Yandex each have tools to test Schema markup. Here are the links to these tools: