seo

Schema Markup

Schema markup is structured data code added to a webpage's HTML that explicitly tells search engines what your content means — not just what it says.

This glossary entry is written for small business owners and freelancers managing WordPress sites who want to understand what schema markup is before installing a plugin or hiring someone to configure it.

Affiliate disclosure: Some links on WPSchool earn us a referral fee at no extra cost to you.


Schema Markup

Schema markup is structured data code added to a webpage’s HTML that explicitly tells search engines what your content means — not just what it says.

Without schema, Google reads your product page and guesses it’s selling something. With schema, you tell Google directly: this is a product, it costs $49, it has a 4.7-star rating from 312 reviews, and it ships in 3 days. That precision is what unlocks rich results in search — star ratings, price ranges, FAQ dropdowns, and event dates displayed directly in the SERP.

What schema markup actually does in WordPress

Schema markup converts natural-language content into machine-readable data using a shared vocabulary maintained at Schema.org, a standard developed jointly by Google, Bing, Yahoo, and Yandex in 2011. When you add schema to a WordPress page, search engines can surface that data as rich snippets — the enhanced SERP displays that consistently outperform plain blue links on click-through rate.

In our work across client sites, pages with properly implemented Review schema routinely see 20–35% higher CTR than identical content without it.

The three formats: JSON-LD, Microdata, RDFa

Google officially recommends JSON-LD as the preferred format. It sits in a <script> tag in the <head> rather than woven through the HTML, which makes it far easier to add, update, and validate without breaking your page layout. Microdata and RDFa embed attributes directly in HTML elements — valid, but harder to maintain without a developer.

On WordPress, you almost never write this by hand. Plugins like Rank Math Pro and AIOSEO generate JSON-LD schema automatically based on your page type, product data, and author fields.

A minimal JSON-LD example

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "How to Speed Up WordPress",
  "author": {
    "@type": "Person",
    "name": "Priya Sharma"
  },
  "datePublished": "2026-04-24"
}
</script>

That block tells Google: this page is an Article, written by a named person, published on a specific date. Simple — and it’s the baseline most WordPress SEO plugins generate automatically.

When you encounter schema markup in WordPress

We see three common entry points on client sites: installing an SEO plugin that auto-generates schema, adding WooCommerce Product schema for store pages, or fixing a Google Search Console warning about missing or invalid structured data. The Rich Results Test from Google is the fastest way to see what schema is currently detected on any URL — paste the URL, and it shows which rich result types are eligible.

One frequently missed detail: schema validity does not guarantee rich results. Google treats valid schema as eligible, not automatic. Pages with thin content or low authority may have correct schema and still not show rich snippets.


Related terms

Additional reading

Last verified: April 2026