Guides · Advanced SEO

How to Add Schema Markup to WordPress for Rich Results in Google

Add structured data to your WordPress site for rich snippets. Product, article, FAQ, and local business schema — step by step with Rank Math.

{ "@context": "@type": "Product", "name": "Widget", } Product Name $199.00 ★★★★★ (128) us · domain.com Product Name — Get Yours Today

Schema markup — also called structured data — is the secret weapon that turns ordinary search results into eye-catching rich results. Star ratings, product prices, FAQ accordions, and breadcrumb trails all come from schema. This guide shows you exactly how to add it to your WordPress site.

What Is Schema Markup? JSON-LD Explained

Schema markup is a standardized vocabulary (created by Schema.org and backed by Google, Microsoft, Yahoo, and Yandex) that you add to your HTML to help search engines understand your content. It uses the JSON-LD format — JavaScript code placed in the page header that describes what your content means, not just what it says.

For example, a product page without schema tells Google "here is some text and an image." With Product schema, Google knows the exact name, price, availability, rating, and brand — and can display those details directly in search results.

Why Schema Matters: Rich Results, Higher CTR, Voice Search

Sites with schema markup see an average 20–30% increase in click-through rate. Rich results — those search listings with star ratings, images, prices, or FAQ expanders — visually dominate the search results page. For voice search, schema is even more critical: when someone asks "Hey Google, what's the best wireless keyboard under $100?", Google pulls the answer from Product schema.

Schema markup does not directly impact rankings — but it dramatically improves the appearance of your listings, which boosts CTR, which then signals relevance to Google and can indirectly improve rankings.

Types of Schema You Should Use

WordPress sites benefit from several schema types:

How to Add Schema with Rank Math

Rank Math SEO plugin includes one of the best built-in schema modules — and it is free. Here is how to set it up:

  1. Install and activate Rank Math from Plugins → Add New
  2. Enable the Schema module — Rank Math → Dashboard → toggle Schema (Structured Data) to on
  3. Set global defaults — Rank Math → Titles & Meta → Post Types. Set default schema for posts (Article) and pages (Article or WebPage)
  4. Configure per-post schema — While editing any post or page, scroll to the Rank Math metabox → Schema tab → Schema Generator. Add or modify schema types per page
  5. Set up WooCommerce schema — Rank Math automatically adds Product schema to WooCommerce products. Fine-tune under Rank Math → General Settings → WooCommerce

Testing Schema with Google Rich Results Test

After adding schema, always validate it. Google provides two free tools:

  • Rich Results Test — Enter any URL and see which rich results your page qualifies for, plus any errors. This is your go-to validation tool.
  • Schema Markup Validator — A deeper, more technical validator that shows all detected schema types and their properties.

Fix any errors immediately — a page with broken schema is worse than a page with no schema at all.

Schema for Ecommerce Products

For WooCommerce stores, ensure your Product schema includes: product name, description, SKU, brand, offers (price, currency, availability), aggregate rating, and review count. Rank Math handles most of this automatically, but verify that your product images are at least 1200px wide — Google requires this for product rich results.

FAQ Schema for Featured Snippets

FAQ schema is one of the highest-impact schema types available. A well-optimized FAQ page can occupy twice the vertical space in search results thanks to expandable accordions. To use FAQ schema effectively: add genuine questions your customers ask, provide concise answers (40–60 words), group related questions, and do not mark up promotional content as FAQ.

Local Business Schema

If you serve a local market, LocalBusiness schema is non-negotiable. Include your business name, address, phone number (NAP — these must match your Google Business Profile exactly), opening hours, geo-coordinates, and accepted payment methods. Consistency across all citations is critical — mismatched NAP data confuses Google.

Common Schema Errors to Avoid

  • Marking up content that is not visible to users (Google penalizes this)
  • Using the wrong schema type for your content
  • Missing required properties (e.g., Product schema without a price)
  • Duplicate schema from multiple plugins conflicting with each other
  • Outdated pricing or availability information

Measuring the Impact of Schema Markup

Track your schema performance in Google Search Console under the "Enhancements" section. You will see which schema types are detected, how many pages have them, and whether there are errors. Monitor your average CTR in the Performance report before and after implementing schema — the improvement is often visible within two to four weeks.

Schema markup is one of the highest-ROI SEO tactics available. It takes an afternoon to set up and can deliver lasting improvements to your search visibility. Need help with SEO and schema? We build schema-optimized WordPress sites that dominate rich results.

Want rich results for your website?

We build schema-optimized WordPress websites that stand out in search results. Star ratings, FAQ accordions, and product listings.

Get a Free Quote →