How To Add Schema Markup To WordPress And Get Rich Snippets

Add Schema Markup To WordPress

Most bloggers do everything possible to make their content rank higher in Google. That’s a good thing and you should always strive to increase your site’s Google rankings.

But it’s not just about where you rank, it is also about how many people click on your site in the search results.

While most people are going to click on the first result, you can improve your chances of getting clicks by adding schema markup to your content.

For example, which of these search results is more attractive to you?


Most people would say the third one, even though it ranks lower than the other two!

To help you get the same type of eye-catching search results, you need the schema markup. And in this post, I’m going to show you exactly how to add schema markup to WordPress.

What Exactly Is Schema Markup?

Schema markup is a specific type of structured data that all of the popular search engines have agreed to use.

It goes directly in your site’s code, so your human visitors will never see your schema markup on the front-end of your site. But search engines can read the code to learn more about your website.

You can see an example of how schema markup looks below:

Schema Markup

The purpose of schema markup is to add context to your website’s content. For example, it lets you tell Google that a specific number is your review rating for a product, rather than just a random number.

Then, Google can use this extra context to give you something called rich results (formerly known as rich snippets).

Here’s how Google phrases it:

When you use structured data to mark up content, you help Google better understand its context for display in Search, and you achieve better distribution of your content to users from Search

Does Schema Markup Help You Rank Higher In Google?

There is no data to suggest that schema markup will actually improve your rankings.

But there is data to suggest that rich snippets can increase how many people click on your existing rankings.

Again, this is because schema markup helps your website stand out against the other pages ranking for the same keyword.

So even though schema won’t currently make you rank higher, it can still help you get more traffic from Google by increasing your organic CTR rate.

How To Add Schema Markup To Your WordPress Site

The easiest way to add schema markup to WordPress is by using some plugins.

The exact plugin that you should use depends on what type of schema markup you want to add, though.

Below, I will suggest some tools that all sites should use, as well as some other schema markup plugins that only apply to specific types of sites.

You Should Use Yoast SEO For Basic Schema Markup

Yoast SEO, as well as most other SEO plugins, makes it easy to add basic schema markup to your site.

Specifically, Yoast SEO helps you add these four basic types of schema markup:

  • Basic organization data
  • Breadcrumbs
  • Social profiles
  • Homepage for search

If you use the Yoast SEO configuration wizard, you should have already filled out this information:

Yoast SEO configuration wizard

But you can also access its settings by going to SEO → Search Appearance → General:

Search Appearance - Yoast SEO

This schema markup helps Google display your website in its Knowledge Graph, and it can also get you breadcrumbs in Google’s organic search results.

It’s not complete, though. Also, certain types of sites need additional schema markup…

How To Get Star Rating Rich Snippets For Product Reviews

A lot of us review products to generate traffic (and often affiliate commissions).

If you write these types of reviews, it’s very easy to enhance your site’s display by adding star ratings and the reviewer’s name. You can see an example of this for ShoutMeLoud below:

Get Star Rating Rich Snippets For Product Reviews

This type of schema markup is surprisingly easy to add – all you need is a review plugin.

I use one called Author hReview here at ShoutMeLoud. However, the product seems to be phasing out and is no more a reliable solution. This is something you should not be using and I will also be shifting to one of the other solutions that I have listed below.

However, for the better understanding let me show you how Author hReview plugin works:

All I need to do is fill out some basic information in the WordPress editor:

Author Review Settings

Then, the plugin adds this small review summary box with the proper schema markup:

Schema markup

And once Google sees that box, it has all the information it needs to give your review those star-ratings!

There are also plenty of other plugins that can do something similar. Two good ones are:

If you like the styles of either of the above plugins, they’re totally fine to use as well.

How To Add Schema Markup For Other Content Types

So far, I’ve shown you how to add the schema markup types that most blogs will use. You know how to add:

  • Basic organization and sitelinks schema via Yoast SEO
  • Review rich snippets via a review plugin

But what if your blog posts other types of content? Google supports a ton of different schema rich results for things like:

  • Events
  • Job posts
  • Local businesses
  • Products
  • Recipes
  • Etc.

For example, here’s what a recipe rich snippet looks like:

Recipe rich snippet

If you run a food blog, that’s pretty eye-catching, right?

You can see a full example of how all these rich results look like at the Google Search Gallery.

To add these other types of schema markup, you have two good options:

These plugins are from the same developer but go about adding schema markup in different ways.

The All In One Schema Rich Snippets lets you add a content box to your site with proper schema markup, just like the review example I showed you above. For example, you can add new content to your post for recipe data:

The All In One Schema interfaceThe recipe data that you add in this box will appear in your post according to the plugin’s settings.

Schema Pro, on the other hand, works behind the scenes. Instead of using it to add new content, you just map it to your existing content using a simple, code-free interface. The benefit is that humans won’t ever see anything beyond your normal post content.

Which is better? Well, it depends:

  • Schema Pro is good if you’re already using a separate plugin for events, recipes, etc. and just want to add schema markup to that plugin’s existing output.
  • All In One Schema Rich Snippets will still get you the same rich results, you’ll just need to display its content in your post, which may or not be something that you want to do.
Configure Rich Snippet
The Schema Pro interface

Final Thoughts On How To Add Schema Markup To WordPress

If you’re just writing regular blog posts, you probably don’t need a dedicated plugin. Just make sure to fill out the basic schema markup in Yoast SEO to take advantage of organization markup, as well as breadcrumbs and sitelinks.

If you write any type of reviews though, you should definitely consider one of the review plugins to get star-ratings in Google’s search results.

And if you’re publishing content like recipes, events, products, etc. then you should definitely get one of the specialized schema markup plugins to take advantage of the rich results for those content types.

Do you have any other questions about adding schema markup to your WordPress blog? Leave me a comment and I will try to help.

Here is another write up you may be interested in:

Leave a Reply

Your email address will not be published. Required fields are marked *