Schema markup is code that labels the facts on a page so search engines don’t have to guess. A page might say “Open 8–4, Tuesday to Sunday”; schema says, in a format machines read reliably, these are the opening hours of this business.
If you’re new to it, start with schema markup in plain English. This guide is the practical companion: examples you can copy, adapt and test.
Why schema markup is important
- Rich results. Some types make your listing eligible for extras in Google, such as star ratings, prices, breadcrumbs or event dates. These take more space and often get more clicks.
- Clarity. Schema removes ambiguity: which name is the business, which number is the price, which date is the publish date.
- Consistency across search. The same facts feed search engines and other services that read your pages.
Two honest caveats. Schema isn’t a direct ranking boost, and Google says there’s no special markup needed for its AI features. And markup must always match what’s visible on the page; marking up things readers can’t see breaks Google’s guidelines.
A note on FAQ rich results
Google stopped showing FAQ rich results in Search on May 7, 2026. They had already been limited to well-known government and health sites since 2023. FAQPage markup is still valid schema and still describes your page accurately, but it won’t make expandable questions appear under your listing anymore. HowTo rich results were retired in 2023 as well.
How to add these examples
Schema examples below use JSON-LD, the format Google recommends. Each goes inside a script tag anywhere in the page’s HTML:
<script type="application/ld+json">
... the JSON from an example ...
</script>
In WordPress, your SEO plugin already outputs some schema (usually Organization, WebSite, Article and breadcrumbs). Check what it adds before pasting your own, so you don’t end up with two conflicting versions.
Example 1: Local business
Use the most specific type that fits (Bakery, Dentist, Plumber, Restaurant), or LocalBusiness if none does.
{
"@context": "https://schema.org",
"@type": "Bakery",
"name": "Crumb & Co Bakery",
"url": "https://crumbandco.example/",
"telephone": "+44 113 496 0000",
"address": {
"@type": "PostalAddress",
"streetAddress": "12 High Street",
"addressLocality": "Leeds",
"postalCode": "LS6 2AB",
"addressCountry": "GB"
},
"openingHoursSpecification": [{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
"opens": "08:00",
"closes": "16:00"
}]
}
Example 2: Article or blog post
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to keep a sourdough starter alive",
"datePublished": "2026-11-02",
"dateModified": "2026-11-20",
"author": { "@type": "Person", "name": "Sam Baker", "url": "https://crumbandco.example/about" },
"image": "https://crumbandco.example/img/starter.jpg"
}
Named authors with an about page help readers and search engines see who wrote the advice.
Example 3: Product
Only include ratings if the reviews are genuinely shown on the page.
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Sourdough starter kit",
"image": "https://crumbandco.example/img/starter-kit.jpg",
"description": "A live starter, a jar and a printed feeding guide.",
"offers": {
"@type": "Offer",
"price": "18.00",
"priceCurrency": "GBP",
"availability": "https://schema.org/InStock"
}
}
Example 4: Breadcrumbs
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Cakes", "item": "https://crumbandco.example/cakes" },
{ "@type": "ListItem", "position": 2, "name": "Wedding cakes", "item": "https://crumbandco.example/cakes/wedding" }
]
}
Example 5: Organization
Usually placed on the homepage, this links your site to your other profiles.
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Northwind Studio",
"url": "https://northwind.example/",
"logo": "https://northwind.example/logo.png",
"sameAs": ["https://www.linkedin.com/company/northwind-studio"]
}
How to test schema markup
- Google’s Rich Results Test shows which rich results a page is eligible for and flags errors.
- The Schema Markup Validator (validator.schema.org) checks the markup against schema.org, including types Google doesn’t use for rich results.
- Search Console’s enhancement reports show errors across the whole site once Google has crawled it.
Test after every change, and again after theme or plugin updates, which can quietly remove or duplicate markup.
Keeping schema in step with your pages
The most common schema problem isn’t a syntax error; it’s drift. The page says one price and the markup says another, because someone edited the page and forgot the code. OnPage Agent builds JSON-LD for each page from what’s actually visible on it, validates it before it ships, and keeps it in step when the page changes.