Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Beginner’s Guide: How to Use Rich Snippets in WordPress

I still remember the first time I saw a competitor’s search result decorated with shiny star ratings and an event date. My own plain blue link suddenly felt invisible, and I worried that getting those eye-catching results was far too technical for me.

That’s when I learned about rich snippets. They are the secret to making your content stand out in search results by showing extra details like reviews, prices, or even recipe times.

Here at WPBeginner, we use tools like All in One SEO to add this information, called schema markup, to our own articles. It’s surprisingly straightforward and is one of the best ways to earn more clicks from users.

In this guide, we’ll walk you through the exact steps to add rich snippets to your WordPress site. We will cover both an easy plugin method and a manual approach for those who like to code.

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

What Are Rich Snippets?

Rich snippets are the extra visual details that appear beneath a page title and URL in Google search results.

While a standard result shows a title, a URL, and a short description, a rich snippet might show star ratings and review counts for a product, a cooking time and calorie count for a recipe, an event date and location, or a question answered directly in the results.

These enhancements come from structured data, also called schema markup, that you add to your WordPress site. Schema markup is a standardized vocabulary of code maintained by Schema.org. It tells search engines not just what your content says, but what it means.

When Google reads code on your page that identifies it as a recipe and lists the cook time, ingredients, and nutrition info, it can use that data to build a rich snippet in search.

There are three main ‘languages’ or formats for writing schema markup: Microdata, RDFa, and JSON-LD. Don’t worry if those sound technical, because Google highly recommends sticking to just one: JSON-LD.

It’s the easiest format to work with because you can add it as a standalone script without touching your post’s visible HTML. It’s also the format most WordPress plugins, including All in One SEO, use by default.

You may also come across the term ‘rich results’, which is Google’s broader current term covering rich snippets, carousels, and Knowledge Panels. In everyday use, most people treat ‘rich snippets’ and ‘rich results’ as interchangeable, and this guide uses both.


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.

Google search statistics prove this, reporting that rich results get 58 clicks for every 100 searches, outperforming regular search results.

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, how tos, videos, music, apps, articles, blog posts, and much more.


Types of Rich Snippets in WordPress

Different schema types unlock different rich results in Google. The right type depends on your content. Here’s a breakdown of the most useful schema types for WordPress sites and what each one does.

Article and Blog Post

Article schema (and its sub-type, BlogPosting) is for news articles, blog posts, and editorial content. Google can use it to include your content in the Top Stories carousel, display a publication date next to your result, and verify your author’s identity through author markup.

All in One SEO applies Article schema to WordPress posts by default, so many blog owners already have this in place without realizing it. If you publish news content or original editorial articles, this is the most important schema type to have set up correctly.

Product

Product schema is for WooCommerce stores and any page selling physical or digital items. It can display star ratings, review counts, price, and availability (in stock or out of stock) directly in search results.

Searches for specific products are highly commercial, so a result showing price and reviews stands out clearly against a plain link.

Product schema also feeds into Google Shopping. While WooCommerce includes basic product schema out of the box, All in One SEO Pro completely supercharges it.

It integrates seamlessly to pull in advanced product data automatically, ensuring your products have the highest chance of triggering those eye-catching rich snippets.

Recipe

Recipe schema produces one of the most visually distinctive rich results available.

Google can display your recipe with a thumbnail image, cooking time, calorie count, and star rating in a card format. Recipe searches are highly visual, and a recipe card stands out sharply against plain links in the results.

Required fields include the recipe name, image, author, preparation time, cooking time, and a list of ingredients. Food bloggers and cooking sites see some of the biggest click-through gains from schema because Google features recipe results so prominently.

For step-by-step instructions, see our guide on how to add recipe schema in WordPress.

FAQ

FAQ schema marks up a list of questions and their answers. Google can expand your search result to show two or three Q&As directly beneath your standard listing, which increases the screen space your result occupies and pushes competitors further down the page.

This works well on any page that addresses common reader questions. Note that Google reduced how often it shows FAQ rich results starting in mid-2023 for most websites, now prioritizing government and health pages more heavily.

Adding FAQ schema is still worthwhile, but how often it appears will vary. For setup instructions, see our guide on how to add FAQ schema in WordPress.

HowTo

HowTo schema is for step-by-step instructional content. However, Google retired the HowTo rich result in August 2023, so it no longer produces any visual enhancement in search results on desktop or mobile.

The markup still validates correctly, but adding HowTo schema to a tutorial page will not trigger additional SERP display. If you publish step-by-step tutorials, the better approach is to use Article schema and focus on clear, well-structured on-page headings and steps.

For setup instructions, see our guide on how to add HowTo schema in WordPress.

Event

Event schema is for pages that promote upcoming events. Google can display your event’s name, date, time, location, and ticket information in search results.

Event rich results also appear in the Events section of Google Search and on Google Maps, giving your event exposure beyond standard web results. This schema type is useful for local event organizers, venues, conferences, and community groups.

For detailed setup steps, see our guide on how to add event schema in WordPress.

Review and Aggregate Rating

Review schema marks up an individual review, while AggregateRating marks up an average score calculated from multiple reviews. AggregateRating is what produces the star ratings you see next to products, local businesses, and apps in search results.

You need at least one review on the page for Google to display this. Review sites and product roundup articles benefit most from this type because star ratings are one of the strongest visual trust signals in search results.

Local Business

LocalBusiness schema is for businesses with a physical location. It tells Google your business name, address, phone number, hours, and website URL in a machine-readable format.

While your Google Business Profile is the primary driver of local knowledge panels and map results, LocalBusiness schema on your website reinforces that data and supports local search visibility.

Restaurants, medical practices, law firms, and any business serving local customers should have this in place alongside their Google Business Profile.

Video

VideoObject schema is for pages where video is a primary content element. Google can display a video thumbnail and duration in search results and may include your video in the Video carousel at the top of the page.

This is particularly valuable for tutorial sites and creators who publish videos on their own WordPress site in addition to a YouTube channel. Key fields include the video name, description, thumbnail URL, upload date, and duration.

Course and Software Application

Course schema marks up educational content like online courses, with fields for the course name, description, and provider. SoftwareApplication schema covers apps and digital tools, with fields for the application category, operating system, and price range.

If you run a learning management system, an e-learning site, or a software review blog, then these schema types let Google surface structured information about your content in search. All in One SEO includes both types in its Schema Catalog.

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 understand your content and makes it much more likely to display rich snippets.

Now, 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 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: While the free version of AIOSEO handles essential schema markup automatically, you’ll need the pro version to unlock the full Schema Catalog. This allows you to add advanced rich snippet types like Product, Recipe, and Course, plus other powerful features like a redirection manager.

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 on 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 Schema Catalog includes all of the types described above, plus several others. Here are some of the most commonly used:

  • Article – for blog posts, news articles, and editorial content
  • Product – for WooCommerce items with pricing and availability
  • Recipe – for food content with cook times and ingredients
  • Software/App – for applications, plugins, and digital tools
  • FAQ – for pages with a structured list of questions and answers
  • Event – for upcoming events with dates and locations
  • Course – for online courses and educational programs
  • Video – for pages where video is the primary content
  • Web Page – a general type for standard website pages
  • Profile – for person or organization pages

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 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, and the schema template will be added to your post so you can fill out your specific details.

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 manually adding code to your site. The easiest free way to do this on a per-post basis is by using the built-in WordPress block editor. If you haven’t worked with code before, then see our guide on how to copy and paste code in WordPress.

Structured data can be written in a few formats, but Google highly recommends using JSON-LD. It is the easiest format for beginners because you add it as a self-contained block of code without having to edit your post’s visible HTML.

In the steps below, you will add it directly inside your post using a Custom HTML block. If you want to inject it into your site’s header instead, see the WPCode Pro Tip at the end of this section.

Unless you are an advanced developer, we don’t recommend writing this code from scratch. Instead, you can use a free tool like the Schema Markup Generator by dentsu.

Simply select the type of schema you want (like an Article, Event, or FAQ), fill out the form fields, and the tool will automatically write the correct JSON-LD code for you.

Schema Markup Generator Website

Once generated, your code will look something like this example for a ‘Person’ schema:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Person",
  "name": "John Smith",
  "jobTitle": "Support Technician",
  "image": "https://www.example.com/johnsmith.jpg",
  "url": "https://www.example.com"
}
</script>

Now, you need to add this specific code to your chosen WordPress post. Here is exactly how to do it using a Custom HTML block.

First, open the specific WordPress post or page where you want to add the rich snippet in the block editor.

Next, click the ‘+’ add block icon anywhere in your content area and select the ‘Custom HTML’ block.

Adding Schema Markup to a Post Using a Custom HTML Block

Go ahead and paste your generated JSON-LD script directly into the HTML box.

Finally, click ‘Update’ or ‘Publish’ to save your post.

Don’t worry about where you place this block in your content. Google’s bots will still easily find and read the schema code, but it will remain completely invisible to your human visitors!

Pro Tip: If you are using the premium version of WPCode, you can paste this script directly into the ‘WPCode – Page Scripts’ meta box below your editor to easily inject it into the page header.

If you want to learn more about the specific technical requirements for different formats, you can refer to Google’s Developer resource on structured data or the extensive documentation on Schema.org.


Best Practices for Rich Snippets in WordPress

Following Google’s structured data guidelines keeps your site eligible for rich results and protects it from manual penalties. Here are the most important rules to keep in mind after you’ve added schema markup.

Only mark up content that is visible on the page. Your schema markup should describe information that readers can actually see. Don’t add schema for content that is hidden, inside a collapsed tab they haven’t opened, or not present on the page at all.

If your structured data claims a product has dozens of five-star reviews but no reviews appear on the page, Google may flag this as misleading and remove your rich result eligibility.

Keep your markup accurate and up to date. If you update a product’s price, add new reviews, or change an event’s date, update your schema to match.

Structured data that contradicts your page content can trigger errors in Google Search Console’s Rich Results report and reduce how often your snippets appear.

Don’t use schema to misrepresent your content. Google prohibits adding schema types that don’t match your actual content, aggregating reviews from third-party platforms without permission, or using rich snippets to make promotional content appear as editorial content. Violations can result in a manual action that removes your rich result eligibility entirely.

Monitor your performance in Google Search Console. Search Console lists your successfully detected schema types (like Videos, Products, or FAQ) directly in the left-hand menu.

Clicking on any of these types shows you how many pages are eligible for rich results, and highlights any warnings or errors preventing their display.

Checking this report after your initial setup (and periodically after that) is the best way to catch issues before they affect your rankings.


Testing Your Schema Markup for Rich Snippets

Whether you used a plugin or added code manually, it’s a great idea to test your setup to make sure Google can read it correctly. Google provides two free tools for this, each with a different purpose.

1. Check Eligibility with the Rich Results Test

This is the most important tool for most users. It checks if your page is eligible for the special visual enhancements (rich results) that Google can display in search results.

To use it, head over to the Rich Results Test tool. Enter the URL of your post or page and click ‘Test URL’.

Run rich results test

Pro Tip: If you are writing your own JSON-LD code manually (Method 2), you can paste your raw code directly into the ‘Code’ tab of the Rich Results Test. This lets you catch errors before you even publish the post!

The tool will analyze your page and tell you which rich result types it found and whether they are valid. This is the best way to confirm that your recipe, review, or FAQ schema is working correctly!

2. Validate Your Code with the Schema Markup Validator

This is a more technical tool that checks if your schema code is written correctly according to the official Schema.org standards. It validates all types of schema, not just the ones that create rich results.

You can find it by going to the Schema Markup Validator. Just like before, enter your URL and click ‘Run Test’.

Enter URL or code and test structured data

The validator will show you all the schema it found on the page and point out any errors or warnings in the code itself.

Your goal here is to see ‘0 Errors’ to ensure your code is perfectly clean.

Schema markup test results

Troubleshooting: Why Isn’t My Rich Snippet Showing?

If your schema passes both testing tools but your rich snippet still isn’t appearing in search results, there are a few common explanations.

Google hasn’t recrawled your page yet. After you add or update schema markup, Google needs to crawl and reindex your page before any changes appear in search.

This can take anywhere from a few days to several weeks, depending on your site’s crawl frequency. You can speed this up by submitting your URL through the URL Inspection tool in Google Search Console.

Search Console is reporting errors on your pages. Even if the testing tools show valid schema, Search Console may be flagging errors or warnings across a broader set of your pages.

Go to Search Console and look under Enhancements for the schema types you’ve added. Any errors there will prevent rich results from displaying.

Your page may not meet Google’s content quality threshold. Google applies a content quality standard to rich results.

Pages with thin, low-quality, or spammy content are less likely to receive rich snippets even when the schema markup is technically valid. Improving the overall depth and quality of the page is the best fix in this situation.


Frequently Asked Questions About Rich Snippets

We know that learning about schema markup and rich snippets can bring up a few questions. Below are answers to some of the most common ones we hear from our readers.

1. What are rich snippets in WordPress?

Rich snippets are visually enhanced search results that show extra information pulled from your website’s structured data (schema markup). This can include star ratings, prices, cooking times, or event dates, making your listing more attractive and informative to users.

2. How long does it take for rich snippets to appear in search results?

There is no exact timeframe. After you add schema markup, search engines like Google need to recrawl your site to discover the changes. This can take anywhere from a few days to several weeks, depending on your site’s crawl frequency.

3. Does adding schema markup guarantee I will get rich snippets?

No, it does not. While adding correct schema markup makes your site eligible for rich snippets, Google makes the final decision on whether to display them. They may choose not to show them based on search query, device, location, or overall content quality.

4. What is the best way to add rich snippets: a plugin or manual code?

For the vast majority of WordPress users, using a plugin like All in One SEO is the best method. It’s much easier, safer, and eliminates the risk of making coding errors that could break your site.

The manual code method is only recommended for advanced users who are comfortable writing JSON-LD and injecting code into their site headers using a plugin like WPCode.

5. What types of content benefit most from rich snippets?

Recipe sites, product pages, and review content tend to see the greatest click-through improvements from rich snippets because their schema types produce highly visual results.

Events and courses also benefit because the additional context (date, price, provider) is exactly what searchers need before clicking.

Blog posts and standard articles can gain through Article schema as well, particularly when eligible for the Top Stories carousel.

6. Why aren’t my rich snippets showing in search results?

The most common reason is that Google hasn’t recrawled your page since you added the schema markup. Other causes include validation errors in your markup, content quality issues on the page, or Google simply choosing not to display rich results for a particular search query.

Use the Rich Results Test and check your Search Console Rich Results report to diagnose the specific issue.

7. Can I use multiple schema types on one page?

Yes. Google supports multiple schema types on a single page. For example, a recipe article might include both Recipe schema and Article schema. A local business website might include LocalBusiness schema on every page plus Product schema on individual product pages.

All in One SEO’s Schema Catalog lets you add and manage multiple schema types on any post or page from a single interface.


Additional Resources

Now that you know how to add rich snippets, you may find these other guides helpful for improving your site’s SEO and user experience:

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.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

36 CommentsLeave a Reply

  1. I discovered markup schema or rich snippets thanks to wpbeginner and thanks to AIO SEO. I can confirm that my SEO and rankings have improved significantly since then. You will really improve your positions if you use them.

  2. Thanks for the post I have seen rich snippets many times and have thought of how to add but was not aware of the steps of adding it.
    Adding Snippets is a good way to add more information for search bots and increase seo.
    As we can add code to the WordPress for rich snippets, I think it would be simpler and better if we would be able to add through wpcode and then use inside posts and pages through some logic.
    is there a way we can add rich Snippets using wpcode and how?

    • We do not have a beginner friendly way we would recommend using WPCode at the moment.

      Admin

    • It makes no sense at all because every article is different. I personally create snippets exactly according to the article thanks to the AIO SEO plugin. I will add everything I need. How To, Video, FAQ and I mix it up. It takes a little time, but the result is perfect and you can see it in the results.

  3. Thanks for posting I was interested how to add Rich Snippets into posts or page now I can understand how to do it right.

  4. Hi, is this plugin can be used with Yoast SEO Plugin or it is also a substitute of Yoast?

  5. Hi,
    I added rich snippet plugin into my website
    It is a recipe website. I have installed the plugin and activated. I filled all the boxes. When i tested it in google, i got warning to fill ratings. I looked upon the rating option and didn’t find anything for recipe
    What should i do in this case?
    Thanks in advance.

  6. I programmed it without plugin. After acualisation and switching between visuell and text(Code) view my code was gone.
    Do you have any suggestions?

  7. Tell me please, is it necessary first to clean the old structured data, which are available on my website, and then install the plugin All In One Schema.org Rich Snippets?
    Or can I install the plugin All In One Schema.org Rich Snippets on top of structured data, which are now on my website?

  8. Hello! I have the plugin All In One Seo Pack on my site. Please tell me, could this be the conflict All In One Seo Pack with All In One Schema.org Rich Snippets? Could it be that both plugins are used on the website?

    Thank you.

    • There is way to remove the box but it will harm your google ranking.
      You should rather use your child theme style.css to make it look good on your page.
      or use chile theme functions.php to place it in correct place.

  9. How to add rich snippets without this plugin??? I used this plugin but it leaves that box below the content which is visible for the traffic and I don’t want anyone to see this box… I’m really looking forward for your answer

  10. And… will it work well “teaming” with any other SEO plugins like Yoast’s? I can recall Yoast plugins add plenty of mata tags but still don’t add Rich Snippets.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.