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.

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?

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

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

Crucial for food bloggers. It adds an image thumbnail, cooking preparation time, calorie counts, and user reviews.
3. 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

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

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

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

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

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

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.

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.
- Copy the live URL of the page you just updated.
- Go to the official Google Rich Results Test tool.
- Paste your URL and click Test URL.
- 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.

- 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”.
- Open the documentation page and review the available properties and required fields.
- Copy one of the JSON-LD examples provided in the documentation, or create your own based on the property list.
- Open a code editor such as Visual Studio Code, Notepad++, or any plain text editor, and paste the JSON-LD example.
- 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.
- 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.

- Open the specific post or page in your WordPress editor.
- Click the + icon to add a new block and search for Custom HTML.
- Paste your entire copied <script> code block into the box.
- 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.

- Install and activate a free plugin like WPCode (Insert Headers and Footers).
- Go to Code Snippets > Header & Footer in your sidebar.
- Paste your JSON-LD code into the Header text box.
- 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.

- Go to Appearance > Theme File Editor.
- Open the functions.php file from the right-hand file menu.
- Scroll to the absolute bottom and paste a PHP hook to inject the code into your site header.
- 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.

- Copy your live page link.
- Run it through the official Google Rich Results Test tool.
- 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

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

- Open your chosen generator tool in your browser.
- Select your target Schema Type from the dropdown menu (e.g., FAQ Page).
- 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

As you fill out the visual form, you will watch the generator write a code script block in a side panel in real-time.
- Make sure the output format toggle is set to JSON-LD (not Microdata).
- 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

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
Written by
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.
Related Articles

10 Best Google Reviews Plugins for WordPress: I Tested All for Real Sites (2026)
Compare the best Google Reviews plugins for WordPress. Find fast, affordable tools to display reviews, boost trust, and increase conversions.

Add reviews to your website in under 10 minutes (any platform)
Add reviews to your website: Google reviews, product reviews, customer testimonials, video reviews, and more. 3 methods covered with steps, schema, and placement tips.

How to add rich snippets to Shopify: 3 simple methods that work
Discover how to add rich snippets to Shopify using built-in schema, apps, or manual JSON-LD to improve your SEO and search results.