Blog/Google reviews·7 min read

How to add rich snippets to WordPress: 3 Easy methods

Add rich snippets to WordPress with three easy methods and help Google better understand your content.

Krunal vaghasiyaKrunal vaghasiya|June 29, 2026 · Updated July 2, 2026
How to add rich snippets to WordPress: 3 Easy methods

Rich snippets can distinguish your website in Google’s search engine results pages by displaying extra details like star rating, product price, frequently asked questions, and reviews.

Rich snippets will not only catch users’ attention but may also drive more clicks to your website. The best part is that implementing rich snippets on WordPress is much simpler than you would imagine.

You don’t need to be a developer. You can add them using a WordPress plugin, a small piece of schema code, or an online schema generator.

In this guide, I’ll walk you through all three methods step by step, explain when to use each, and show you how to test your wordpress schema markup to ensure Google can read it correctly.

What are rich snippets in WordPress?

Rich Snippets WordPress

The Rich Snippet is an additional feature on Search Engine Results Pages that displays useful information alongside the title, link, and description.

Rich Snippets don’t alter your WordPress website but change its presentation on Search Engine Results Pages.

Those extra elements don’t appear on their own. They’re generated from structured data you add to a page’s code. Structured data is a standardized way of describing your content.

Standard vs. Rich Snippets

  • Standard Snippet: Shows only the blue title link, URL, and a short snippet of text.
  • Rich Snippet: Adds visual elements and data, such as star ratings, image thumbnails, prices, or cooking times.

One quick clarification, since these terms get mixed up constantly. Structured data is the concept. Schema markup is the actual code. Rich snippets are the visual result in search. Same chain, three different words.

Turn real reviews into star snippets

Stars only show where genuine reviews live. WiserReview collects verified reviews and adds Product Review schema to your WordPress pages automatically.

Start Free →

Why rich snippets matter for SEO

Here’s the honest version: rich snippets don’t directly raise your rankings. Google has said this plainly. Adding wordpress schema plugin won’t push you from position 8 to position 3 on its own.

What they do is win the click. A listing with star ratings stands out in a wall of plain links, and that higher click-through rate is what indirectly helps your SEO over time.

Here’s why WordPress rich snippets matter;

  • They Skyrocket Click-Through Rates (CTR)
  • They Dominate Search Engine Real Estate
  • They Reduce Bounce Rates
  • They Boost Trust and Credibility
  • Larger snippets push competitors down the screen.

Also, structured data is becoming the foundation for how AI search and voice assistants pull answers. Marking up your content now sets you up for where search is heading, not just where it is.

Types of rich snippets you can add in WordPress

Not every snippet fits every site. The type you use depends on what your page is actually about. Here are the ones worth knowing.

1. Product Snippets

Product Snippets

Built for ecommerce shops (such as a WooCommerce website) or standalone pages that sell a tangible or digital product. It incorporates prices, stock status (In Stock/Out of Stock), and customer star ratings.

2. Recipe Snippets

Recipe Snippets

Crucial for food bloggers. It adds an image thumbnail, cooking preparation time, calorie counts, and user reviews.

3. Review & Rating Snippets

Review & Rating Snippets

A flexible snippet used by bloggers who critique items, books, movies, or software. It adds numeric star ratings (e.g., 4.5/5) and the reviewer’s name directly beneath the page title.

4. FAQ Snippets

FAQ Snippets

Perfect for service pages, landing pages, and long-form blog articles. It adds a collapsible accordion list of frequently asked questions and answers underneath your standard meta description.

5. Article Snippets

Article Snippets

The standard framework for regular WordPress blog posts, news, and features. It adds an author attribution profile, a date published, and a high-resolution preview thumbnail for Google Discover feeds.

6. Course Snippets

Course Snippets

Appropriate for educational sites, universities, or even online mentors that sell digital boot camps and certifications. The snippet displays the course title, curriculum, duration, and provider information.

7. Event Snippets

Event Snippets

Great for any event organizers hosting events in person or virtually. It will provide a well-defined list of event dates, start times, ticket costs, and locations.

8. Local Business / Organization Snippets

Local Business / Organization Snippets

Essential schema for any small business, agency, or corporation. It adds operating hours, physical addresses, corporate logos, customer service contact numbers, and social media icons.

3 Methods to add product review rich snippets to WordPress

Choose the method that best matches your WordPress setup to add product review rich snippets and improve your product listings in Google.

Method 1: Using WordPress plugin (WiserReview)

Using a review plugin like WiserReview is the easiest way to add rich snippets to WordPress, especially for product reviews, services, or e-commerce pages.

Step 1: Install and activate the plugin

Using WordPress Plugin to add rich snippets to WordPress

Log in to your WordPress dashboard. Navigate to Plugins > Add New.

Search for WiserReview in the top-right search bar. Click Install Now, and then click Activate.

Step 2: Configure your review schema settings

Locate the new WiserReview menu item in your WordPress sidebar dashboard.

1. Navigate to the Settings or Schema Options tab.

Using WordPress Plugin to add rich snippets to WordPress

2. Look for the toggle labeled “Enable Schema Markup” or “Enable Rich Snippets” and turn it on.

3. The plugin will automatically generate Product Review schema (JSON-LD) for WordPress products with published reviews.

Step 3: Verify your rich snippets with Google

Never assume the code is working without testing it first.

  1. Copy the live URL of the page you just updated.
  2. Go to the official Google Rich Results Test tool.
  3. Paste your URL and click Test URL.
  4. Look for a green checkmark indicating that Product or Review structured data was successfully detected.

Add schema without touching code

WiserReview generates valid Product Review JSON-LD from your published reviews, so your WordPress pages qualify for star snippets with one toggle.

Start Free →

Methods 2: Inserting Custom Code Manually (Advanced Method)

If you require full flexibility in all fields, or if your website theme isn’t compatible with plugins, then manual entry of custom code for JSON-LD schemas is the best option.

Step 1: Pick your schema type

You need to determine what type of markup you will use, that is, either Review, Product, Recipe, Article, or something else. Find all types on Schema.org.

Step 2: Create or customize your JSON-LD code

If you want total freedom to work with the schema, you can use manual JSON-LD creation. It will take time and require technical skills from you, but you will be able to edit all the properties you need.

Now it is the time to make your JSON-LD wordpress schema. If you feel confident in your coding skills, you can create it manually.

Inserting Custom Code Manually to add rich snippets in WordPress

  1. Visit https://schema.org and search for your schema type in the search bar (such as Product, Article, FAQ, Recipe, or LocalBusiness) and click “Enter”.
  2. Open the documentation page and review the available properties and required fields.
  3. Copy one of the JSON-LD examples provided in the documentation, or create your own based on the property list.
  4. Open a code editor such as Visual Studio Code, Notepad++, or any plain text editor, and paste the JSON-LD example.
  5. Replace the sample values with your own content. Update fields such as the page URL, title, author, description, product details, price, rating, images, and any other relevant information.
  6. Save your completed JSON-LD code. You’ll add it to WordPress in the next step.

Step 3: Inject the code into WordPress (3 Ways)

Choose the placement method below that best fits your workflow and technical comfort level.

Option A: Use the custom HTML block (Easiest & Safest)

If you only need this snippet on one specific page or blog post, use the native block editor.

Inserting Custom Code Manually to add rich snippets in WordPress

  1. Open the specific post or page in your WordPress editor.
  2. Click the + icon to add a new block and search for Custom HTML.
  3. Paste your entire copied <script> code block into the box.
  4. Update or publish the page. (The code is hidden from human visitors but readable by Google).

Option B: Use a code snippets plugin (Recommended for global code)

If you want to inject site-wide schema (like Local Business) without touching theme files, use a lightweight utility plugin.

Inserting Custom Code Manually to add rich snippets in WordPress

  1. Install and activate a free plugin like WPCode (Insert Headers and Footers).
  2. Go to Code Snippets > Header & Footer in your sidebar.
  3. Paste your JSON-LD code into the Header text box.
  4. Click Save Changes.

Option C: Edit your Theme’s functions.php file (For developers only)

Warning: Back up your site before doing this. If you update your theme later without using a child theme, this code will be overwritten.

Inserting Custom Code Manually to add rich snippets in WordPress

  1. Go to Appearance > Theme File Editor.
  2. Open the functions.php file from the right-hand file menu.
  3. Scroll to the absolute bottom and paste a PHP hook to inject the code into your site header.
  4. Click Update File

Step 4: Validate the code

Always test your live page immediately after adding manual code to catch syntax errors, such as missing commas or brackets.

Inserting Custom Code Manually to add rich snippets in WordPress

  1. Copy your live page link.
  2. Run it through the official Google Rich Results Test tool.
  3. If errors are found, the tool will highlight the exact line of manual code that needs fixing.

Validate your schema to ensure there are no syntax errors, missing required properties, or invalid values before publishing the page.

Method 3: Using online schema generators

As a method that falls between the plugin and the fully manual approach, online schema generators provide JSON-LD code without requiring manual coding. Just complete a form, receive the code generated by the tool, and paste it on your website.

Step 1: Choose a reliable online schema generator

Using online schema generators to add rich snippets to WordPress

Several trusted, free tools generate clean, Google-compliant structured data code:

  • Merkle’s Technical SEO Schema Generator: Best for standard schema types (Local Business, Product, FAQ, Article).
  • Rank Ranger Schema Markup Generator: Excellent for structured event and video scripts.
  • Google’s Structured Data Markup Helper: Best for visually tagging existing text on your live site.

Step 2: Input your content details

Using online schema generators to add rich snippets to WordPress

  1. Open your chosen generator tool in your browser.
  2. Select your target Schema Type from the dropdown menu (e.g., FAQ Page).
  3. Fill out the visual form fields with your exact WordPress page information.
    Example for an FAQ page: Type your first question into the “Question” box and your answer into the “Answer” box. Click “Add Question” to repeat the process.

Step 3: Copy the generated JSON-LD code

Using online schema generators to add rich snippets to WordPress

As you fill out the visual form, you will watch the generator write a code script block in a side panel in real-time.

  1. Make sure the output format toggle is set to JSON-LD (not Microdata).
  2. Click the Copy or Download button to copy the complete text script. It will always start with <script type=”application/ld+json”>.

Step 4: Paste the script directly into WordPress

Using online schema generators to add rich snippets to WordPress

Since the code is already generated, you just need to place it on your website using one of these quick methods:

  • For a Single Page/Post: Open your WordPress post. Add a native Custom HTML Block right inside the Gutenberg editor, paste the copied script block inside it, and save the post.
  • For Site-Wide Schema (like Local Business): Use a lightweight utility plugin like WPCode. Navigate to your header scripts panel, paste your code, and hit save.

Skip the generator for product reviews

Generators are fine for static pages, but reviews change daily. WiserReview keeps your rating schema fresh automatically as new reviews come in.

Start Free →

Which rich snippet method should you use?

Each method earns its place. Here’s how they stack up so you can match one to your situation.

Method Best For Technical Skill Needed Risk of Site Bloat
WordPress Plugins Beginners & standard sites Low Medium to High
Manual Coding Developers & custom designs, full control High None
Schema generator A few static pages, no site-wide plugin wanted Medium Low

How to test rich snippets in WordPress

Adding markup is only half the job. You have to confirm it works before you trust it, because an invalid schema either does nothing or, worse, flags your page.

Use the Google Rich Results Test: This is the primary tool. Enter your page URL or paste a code snippet, and it tells you which rich results your markup is eligible for, plus any errors or warnings. Run it after every schema change.

This test returns three statuses:

  • Valid means your schema works.
  • Valid with warnings means Google can use it, but it recommends fixes.
  • An error means the markup is broken and won’t generate snippets.

Use the Schema Markup Validator: For validating JSON-LD against Schema.org guidelines and not only Google’s rich result test, but the schema markup validator from validator.schema.org will be the second tool for you to try out.

Check Google Search Console: Once your page has been published and indexed, the Search Console enhancements feature will show you the structured data your site has detected. It’s the best way to monitor snippets at scale over time.

One reality check: passing the test doesn’t guarantee Google will show your snippet. Valid markup makes your page eligible, but Google decides what actually appears. Genuine data and a trusted site improve your odds.

Common problems and fixes

A few issues come up again and again. Here’s how to spot and fix them fast.

Duplicate schema

The most common one. Your theme, SEO plugin, and a dedicated schema tool all output Product markup on the same page, and Google ignores the lot.

Fix: pick one source per schema type and switch the schema off everywhere else.

Stars not showing despite valid markup

Usually, it means the page has no approved review or the rating data doesn’t match the visible content.

Fix: confirm at least one published review exists and that your on-page rating matches the markup exactly.

Missing required fields

The validator issues warnings when your JSON-LD omits required properties such as name, image, or price.

Fix: add every required field for your schema type. Skipped fields often block the snippet entirely.

Code stripped on save

You pasted JSON-LD into a Paragraph block, and it vanished on the live page.

Fix: always use a Custom HTML block or a snippet plugin for raw code.

Snippet appeared, then disappeared

Often a sign of mismatched or manipulated data. Google removes snippets it stops trusting.

Fix: keep your markup honest and aligned with what’s actually on the page. Fake or inflated ratings can cost you snippets and trigger penalties.

Keep your rating schema honest and live

Google drops snippets it stops trusting. WiserReview ties your schema to real, verified reviews so your stars stay accurate and stay showing.

Start free with WiserReview →

Wrap up

While rich snippets will not guarantee that you soar to the top ranks on their own, they generate clicks, inspire trust even before users visit your page, and distinguish your listings from the crowd of regular links.

There are three clear routes for you: a plugin for automatic updates, manual JSON-LD code for maximum control, or a generator for a limited number of pages.

In most cases, particularly for WordPress websites and those with product review pages, a plugin is your safest bet.

Whichever route you pick, the rules don’t change. Use a single source for your schema, keep the data honest and aligned with your visible content, and validate before you move on.

Get that right, and those eye-catching rich snippets will start showing up where they count.

Frequently Asked Questions

Common questions about this topic

Not directly. Google has confirmed schema isn't a ranking factor. What rich snippets do is boost your click-through rate by making listings stand out.
A plugin. Most schema and review plugins let you toggle structured data on with no coding, and they update the markup automatically when your data changes.
The most common reasons are no approved review on the page, duplicate schema from two plugins, or rating data that doesn't match your visible content. Fix those and re-test.
Use Google's Rich Results Test to check eligibility and errors, and the Schema Markup Validator for raw JSON-LD. Google Search Console's Enhancements tab monitors structured data site-wide.

Written by

Krunal vaghasiya

Krunal vaghasiya

Krunal Vaghasiya is the founder of WiserReview and WiserNotify, which have served 10,000+ stores since 2020. He helps ecommerce brands build trust through fair, flexible, customer-led review management across every store and market.