Beginner

How to Use Rich Snippets in WordPress


Do you want to add rich snippets on your WordPress site?

Rich snippets allow you to have custom search listings for special content such as reviews, recipes, events, and more. These search listings will stand out and help get more traffic to your site.

In this article, we’ll show you how to add rich snippets to your WordPress site, step by step.

Beginner's guide: how to use rich snippets in WordPress

Why Use Rich Snippets on Your WordPress Site?

Rich snippets use what’s called schema markup to provide extra information about your content to the search engines.

The search engine bots use this data to show additional information about your posts and pages in the search results.

Rich snippets example

This helps to make your posts and pages stand out more in the search results, which can improve your organic click through rate and help you increase your blog traffic.

It also helps you build authority in your niche, as your site becomes more visible in the search.

Rich snippets are not just for review sites or recipes. You can use rich snippets for events, products, people, video, music, apps, articles, blog posts, and more.

Note: It’s important to know that adding schema markup to your website doesn’t guarantee that Google will display it. Google may choose not to for some searches. However, adding the schema markup helps Google to understand your content and makes it much more likely to display rich snippets.

That being said, let’s show you how to add rich snippets to WordPress. Simply use the quick links below to jump straight to the method you want to use.

Method 1. Adding Rich Snippets in WordPress Using a WordPress Plugin

The easiest way to add rich snippets to WordPress is by using the AIOSEO plugin. It’s the best WordPress SEO plugin in the market, used by over 3+ million websites. 

AIOSEO

It helps you easily optimize your site for search engines without the need to hire an SEO expert. Plus, you can set up rich snippets on your site in a couple of clicks.

Note: You’ll need the pro version of AIOSEO since it includes schema markup functionality and other features like XML sitemaps, a redirection manager, and more. There is a free version of the plugin you can use to get started. 

The first thing you need to do is install and activate the AIOSEO plugin. For more details, see our beginner’s guide on how to install a WordPress plugin.

Upon activation, you’ll immediately be taken to the AIOSEO setup wizard. You need to click the ‘Let’s Get Started’ button. 

Click let's get started AIOSEO setup wizard

If the setup wizard doesn’t immediately show up, then simply go to All in One SEO » Dashboard.

From here, you can click the ‘Launch the Setup Wizard’ button. This will walk you through the steps of setting up the plugin for your website. 

AIOSEO dashboard launch setup wizard

As you go through the setup wizard, you’ll need to activate the ‘Advanced Rich Snippets + Schema Markups’ addon.

Simply check the box so that it turns blue, then click the ‘Save and Continue’ button.

Active rich snippets and schema markup addon

On the final screen, you need to enter your license key and then click the ‘Connect’ button.

You can find this information under your account page on the AIOSEO website. 

Enter AIOSEO license key

For more details, see our ultimate guide on how to set up AIOSEO for WordPress correctly.

After that, you can go to AIOSEO » Search Appearance in your WordPress admin panel, and then click on the ‘Content Types’ tab.

Go to AIOSEO search appearance and click content types

Then, you can set the schema markup type for your posts and pages.

Simply click the ‘Schema Markup’ menu option, then you can choose the schema type from the drop-down.

You will be able to see different content types that you can create with the plugin. The list includes:

  • Course
  • Product
  • Recipe
  • Software/App
  • FAQ
  • Web page
  • Profile
  • Article

Clicking on any content type will show you the fields that will be available.

Default schema markup for posts

These settings will be the default settings when you add a new blog post. However, you can change these on an individual post basis too.

Below the post schema markup, you can also control the default schema for your pages.

Simply select the ‘Schema Type’ from the drop-down. Then, you’ll have additional options for the schema type you select.

Default schema markup for pages

Once you’re finished making changes, click the ‘Save Changes’ button before you leave the page. 

Adding Rich Snippet Information to Your Posts and Pages

Now, you can add schema information to your individual posts and pages, so they’ll display with unique rich snippets in the search results.

To do this, simply open up a blog post and scroll down below the post editor. Here you’ll see a meta box called ‘AIOSEO Settings’.

You need to click the ‘Schema’ tab and then click on the ‘Generate Schema’ button.

Click the Generate Schema button in AIOSEO

This will open up the Schema Catalog. Simply click the ‘Add Schema’ button next to the type of schema you want to add.

Choose a schema type from the Schema Catalog

Now, there will be different fields available to fill out, based on the option you select. For example, the ‘Software’ schema type includes fields for the name, operating system, price, description, review, and more.

Post schema markup for software application

Once you’re finished, click the ‘Add Schema’ button. Don’t forget to click ‘Update’ or ‘Publish’ on the post to save your changes as well.

Click Add Schema button

Adding schema markup to individual WordPress pages is similar. You need to open up the page you want to edit and then scroll down to the ‘AIOSEO Settings’ meta box below the page editor.

Then, click the ‘Schema’ menu option, click the ‘Generate Schema’ button, and select your page schema type from the Schema Catalog.

Page schema example for web page

Different options will appear depending on the type of schema you select. 

Just like above, when you’re finished, you need to click the ‘Add Schema’ button and hit ‘Update’ or ‘Publish’ on the page to make your changes live. 

Adding rich snippet information won’t make a difference on the front end of your WordPress blog. However, you’ll be giving the search engine bots extra data to display with your posts and pages in the search results. 

Method 2. Adding Rich Snippets by Adding Code to WordPress

Another way to add rich snippets to WordPress is by adding code to WordPress. If you haven’t done this before, then see our guide on how to copy and paste code in WordPress.

Rich snippets or structured data markup can be written into three different vocabularies. These vocabularies are microdata, RDFa, and JSON-LD. You can use any of them on your site. However, most beginners find RDFa to be more beginner friendly.

Here is an example of a user’s about page in WordPress. Normally the text of the page will look something like this:

John Smith
<img src="johnsmith.jpg" alt="Photo of John Smith"/>
Support Technician
342 Acme Inc.
101 Washington Avenue
Eagleton IN 98052
(425) 123-4567
<a href="mailto:[email protected]">[email protected]</a>
Website:
<a href="http://www.example.com">example.com</a>

This can be easily transformed with rich snippets.

If you are familiar with HTML, then you can easily understand the following example:

<div vocab="http://schema.org/" typeof="Person">
  <span property="name">John Smith</span>
  <img src="johnsmith.jpg" property="image" alt="Photo of John Smith"/>
  <span property="jobTitle">Support Technician</span>
  <div property="address"  typeof="PostalAddress">
    <span property="streetAddress">
      342 Acme Inc.
      101 Washington Avenue
    </span>
    <span property="addressLocality">Eagleton</span>,
    <span property="addressRegion">IN</span>
    <span property="postalCode">46818</span>
  </div>
  <span property="telephone">(425) 123-4567</span>
  <a href="mailto:[email protected]" property="email">[email protected]</a>
Website
  <a href="http://example.com" property="url">example.com</a>
</div>

For each content type, there are some special properties that need to be defined.

Schema.org is the organization that helps maintain the standard for different content types. You will find extensive documentation with examples for each schema content type on their website.

Here is another example of a recipe with rich snippets.

<div vocab="http://schema.org/" typeof="Recipe">
  <span property="name">Mom's World Famous Banana Bread</span>
  By <span property="author">John Smith</span>,
    <img property="image" src="bananabread.jpg"
    alt="Banana bread on a plate" />
  <span property="description">This classic banana bread recipe comes
  from my mom -- the walnuts add a nice texture and flavor to the banana
  bread.</span>
  Prep Time: <meta property="prepTime" content="PT15M">15 minutes
  Cook time: <meta property="cookTime" content="PT1H">1 hour
  Yield: <span property="recipeYield">1 loaf</span>
  Ingredients:
  - <span property="recipeIngredient">3 or 4 ripe bananas, smashed</span>
  - <span property="recipeIngredient">1 egg</span>
  - <span property="recipeIngredient">3/4 cup of sugar</span>
  ...
  Instructions:
  <span property="recipeInstructions">
  Preheat the oven to 350 degrees. Mix in the ingredients in a bowl. Add
  the flour last. Pour the mixture into a loaf pan and bake for one hour.
  </span>
</div>

If you are manually adding rich snippets into your WordPress posts, then you will need to manually add HTML to WordPress. For more details, see our beginner’s guide on how to edit HTML in WordPress code editor.

You may also need to refer to Google’s Developer resource on structured data to understand which properties are required for each content type.

Testing Your Rich Snippets and Schema Markup

If you’re adding rich snippets manually, then you’ll want to make sure you’ve added the structured data to your WordPress website properly.

To check your rich snippets, simply head over to the Google Structured Data Testing Tool. Then, there are two different tests you can run to test your structured data.

First, click the ‘Go to the Rich Results Test’ button. This will see what rich results can be generated for your page.

Go to rich results test

Then, enter your page or post URL into the box.

Next, click the ‘Test URL’ button.

Run rich results test

This will automatically generate a report to see which rich results features can appear when that page or post is listed in the search results.

It will give you any errors or warnings, so you can improve your structured data. You can click the drop-down arrow next to any warning, and you’ll get detailed instructions on how to fix it.

Rich results test results

Next, you can test your schema markup by going back to the Google Structured Data Testing Tools page.

Then, click the ‘Go to the Schema Markup Validator’ button.

Go to schema markup validator test

Next, enter your URL or code snippet into the ‘Test your structured data’ popup.

Then, click the ‘Run Test’ button.

Enter URL or code and test structured data

The tool will automatically analyze your code to see if there are any errors.

You’ll want to see 0 errors on the right-hand side of the page.

Schema markup test results

We hope this article helped you learn how to use rich snippets on your WordPress site. You may also want to see our guide on how to choose the best domain name registrar and our expert picks of the best AI chatbots software for your website. 

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.



46 thoughts on “How to Use Rich Snippets in WordPress

  1. I’m not sure why but this web site is loading extremely slow for me.

    Is anyone else having this issue or is it a problem on my end?
    I’ll check back later on and see if the problem still
    exists.

  2. It’s very simple to find out any matter on net as compared to textbooks, as I found this post at this
    website.

  3. Hi there! Quick question that’s totally off topic.
    Do you know how to make your site mobile friendly? My blog
    looks weird when viewing from my iphone.
    I’m trying to find a template or plugin that might be able to resolve
    this problem. If you have any recommendations, please share.

    With thanks!

  4. We absolutely love your blog and find almost all of your post’s to be precisely what I’m looking for.
    can you offer guest writers to write content to suit
    your needs? I wouldn’t mind creating a post or elaborating on most of the subjects you write in relation to here.
    Again, awesome website!

  5. My family members every time say that I am wasting my time here at net,
    but I know I am getting experience all the time by reading thes good articles or reviews.

  6. It’s difficult to find well-informed people in this particular subject,
    however, you seem like you know what you’re talking
    about! Thanks

  7. I appreciate, cause I found just what I used to be taking a
    look for. You’ve ended my four day long hunt! God
    Bless you man. Have a great day. Bye

  8. Actually no matter if someone doesn’t know after that
    its up to other viewers that they will assist,
    so here it happens.

  9. Actually when someone doesn’t be aware of then its up to other viewers that they will assist, so here it occurs.

  10. If you would like to increase your know-how just keep visiting
    this site and be updated with the hottest news posted here.

  11. Hey there! I know this is somewhat off topic but I was wondering if you
    knew where I could get a captcha plugin for my comment form?
    I’m using the same blog platform as yours and I’m having trouble finding one?
    Thanks a lot!

  12. Every weekend i used to visit this web site, as i want enjoyment, as
    this this web site conations actually pleasant funny data too.

  13. These are genuinely wonderful ideas in regarding blogging.
    You have touched some pleasant factors here. Any way keep up wrinting.

  14. Great web site. Lots of helpful info here. I am sending it to some friends ans also sharing in delicious.
    And naturally, thanks on your effort!

  15. Everyone loves what you guys tend to be up too.
    This kind of clever work and exposure! Keep up the very good works guys I’ve incorporated you guys to our
    blogroll.

  16. Very good blog! Do you have any hints for aspiring writers?
    I’m hoping to start my own blog soon but I’m a little lost on everything.

    Would you advise starting with a free platform like
    Wordpress or go for a paid option? There are so many
    choices out there that I’m totally confused ..
    Any recommendations? Kudos!

  17. Hi, for all time i used to check website posts here early
    in the daylight, as i like to find out more and more.

  18. Hi there to all, the contents existing at this site are actually awesome
    for people experience, well, keep up the good work fellows.

  19. Hello there, I found your site by means of Google at the
    same time as looking for a similar matter, your site got here up, it appears
    to be like great. I’ve bookmarked it in my google bookmarks.

    Hello there, simply turned into alert to your blog through Google,
    and found that it’s really informative. I’m going to watch out for brussels.
    I’ll appreciate in case you continue this in future.
    Lots of folks will probably be benefited out of your writing.
    Cheers!

  20. Very rapidly this web site will be famous amid all blog viewers, due to it’s pleasant articles or reviews

  21. Wow that was unusual. I just wrote an really long comment but after I clicked
    submit my comment didn’t appear. Grrrr… well I’m not writing all that over again. Anyway, just wanted to say excellent blog!

  22. I was wondering if you ever considered changing the structure of your site?
    Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so people could connect with
    it better. Youve got an awful lot of text for only having one or 2
    images. Maybe you could space it out better?

  23. This post provides clear idea for the new users of blogging, that in fact how to do blogging and
    site-building.

  24. I think the admin of this site is truly working hard in support of his website,
    since here every information is quality based stuff.

  25. Why visitors still make use of to read news papers when in this technological globe everything is accessible on net?

  26. Thanks , I have recently been looking for information about this subject for ages and yours
    is the best I’ve discovered till now. But, what in regards to the bottom line?
    Are you positive concerning the supply?

  27. I was more than happy to find this great site. I want to to thank you for your
    time due to this wonderful read!! I definitely enjoyed every little
    bit of it and I have you saved to fav to see new things
    on your web site.

  28. Everything is very open with a precise explanation of the issues.
    It was truly informative. Your site is very useful.
    Thank you for sharing!

  29. Wow, amazing blog layout! How long have you been blogging for?
    you made blogging look easy. The overall look of your website is wonderful, as well
    as the content!

  30. I every time spent my half an hour to read this blog’s articles all the time along with a
    cup of coffee.

  31. Link exchange is nothing else except it is just placing the other
    person’s website link on your page at proper place and other person will also do similar in favor of you.

  32. I was curious if you ever thought of changing the layout of your blog?

    Its very well written; I love what youve got to say. But maybe you could
    a little more in the way of content so people could connect with
    it better. Youve got an awful lot of text for only having
    one or two images. Maybe you could space it out better?

  33. I read this piece of writing fully concerning the difference of latest and previous technologies, it’s
    remarkable article.

  34. 좋은 정보 항상 감사합니다. 저도 똑같이 보답해주고 싶은데요 혹시
    매일 100만원 만들기 이렇한 멋진 정보를 제가 가치 제공을 해드리겠습니다.
    저를 따라와주세요!

  35. Oh my goodness! Awesome article dude! Thanks, However I am encountering difficulties
    with your RSS. I don’t know why I am unable to subscribe
    to it. Is there anybody else getting the same RSS issues?
    Anyone who knows the solution will you kindly respond?
    Thanks!!

  36. I always show love to the people writing this. So let me give
    back and tell you how to do change your life and if you want to see?
    I will share info about how to get connected to girls for free I am always here for yall

  37. It’s truly very complex in this active life to listen news on TV, so I just use web for
    that purpose, and get the most up-to-date information.

Leave a Reply

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