w0wp0
Guide

WordPress Schema Markup: What to Add and Where It Comes From

A practical guide to WordPress schema markup: which JSON-LD types fit which pages, where structured data comes from on a WordPress site, Google's current rich result limits, and how to test it.

Technical SEO • 5 min read • Updated

Schema markup is structured data, usually JSON-LD, that describes what a page is about. WordPress core doesn't output it; on most sites it comes from an SEO plugin. wp0 Studio doesn't generate schema either: its exported theme contains no JSON-LD, so add structured data with your SEO plugin after you install the theme.

Schema markup is structured data that describes a page in a vocabulary search engines understand (schema.org). On WordPress it is almost always added as a JSON-LD block in the page's head, and it almost always comes from a plugin rather than the theme.

A note on wp0's role: wp0 Studio doesn't generate schema. The block theme it exports contains templates, patterns, theme.json and styles, but no JSON-LD. After you install the site kit, add structured data with the SEO plugin you already use. The rest of this guide is tool-neutral.

Where schema comes from on a WordPress site

WordPress core doesn't output structured data. On a typical site it comes from one of three places:

  • An SEO plugin. Yoast SEO, Rank Math, All in One SEO and SEOPress each output a JSON-LD graph with basic types such as WebSite, WebPage, Organization or Person, and Article for posts. This covers most small sites.
  • A specialist plugin. Recipe, event, product and review plugins often add their own markup for the content they manage.
  • Hand-written JSON-LD. Some sites add a custom block of JSON-LD for a type their plugin doesn't cover, through a code snippet plugin or a child theme.

The most common problem is two sources describing the same thing, for example two plugins both outputting an Organization. Pick one source per type, and check the page source after you install anything new.

Which schema type fits which page

PageUseful typesNotes
HomepageWebSite, Organization or LocalBusiness (or Person)Name, logo, URL and contact details should match what the page shows.
Blog postArticle or BlogPostingHeadline, dates and author should match the visible post.
About, ContactWebPage, AboutPage, ContactPageLow effort; most SEO plugins handle these.
Services pageService, with a providerOnly describe services the page actually lists.
Physical businessLocalBusiness or a more specific subtypeAddress, hours and phone must match the page and your other listings.
Any pageBreadcrumbListOnly useful if the page shows a breadcrumb trail.

Start with what your SEO plugin produces, then add types only where a page has content worth describing.

What Google shows today

Structured data helps search engines understand a page and can make it eligible for rich results, but eligibility rules change. Two changes matter for most WordPress sites:

  • FAQ rich results are now shown only for well-known, authoritative government and health websites.
  • HowTo rich results have been removed.

Both changes were announced on the Google Search Central blog in August 2023. FAQPage markup is still valid schema.org, but on a typical business site it won't produce an FAQ rich result, so don't add it just for that.

Google's structured data policies also require markup to describe content that is visible on the page. Don't mark up reviews, prices, FAQs or opening hours that a visitor can't see. Valid markup still doesn't guarantee a rich result; check Google's Search Gallery for which features are currently supported.

Example: Service markup for a services page

Here is an abbreviated JSON-LD block for a services page. Every value should come from text that is on the page.

{
  "@context": "https://schema.org",
  "@type": "Service",
  "name": "Kitchen remodeling",
  "serviceType": "Kitchen remodeling",
  "areaServed": "Austin, TX",
  "provider": {
    "@type": "LocalBusiness",
    "name": "Example Builders",
    "url": "https://example.com/"
  }
}

If the plugin you use doesn't support Service, a snippet plugin can print this inside a script tag of type application/ld+json on that one page. Keep it short and accurate rather than filling in every optional property.

How to add and check schema after installing a theme

  1. Install the theme and pages first. For a wp0 site kit, upload the theme ZIP and import the pages file as described in the install guide.
  2. Configure your SEO plugin. Set the site name, logo, and whether the site represents an organization or a person. That gives you the sitewide WebSite and Organization graph.
  3. Set page types where the plugin allows it. Several plugins let you mark a page as an About, Contact or other page type.
  4. Add specific types by hand only where needed. For example, Service on a services page.
  5. Test. Run the URL through Google's Rich Results Test to see which rich results it's eligible for, and through the Schema Markup Validator (validator.schema.org) to check the schema.org syntax.
  6. Watch Search Console. The Enhancements reports list structured data errors for supported types after Google crawls the pages.

The SEO-ready theme architecture guide covers how schema fits with headings, page speed and canonical URLs.

When you can skip custom schema

If your SEO plugin already outputs a clean WebSite, Organization and Article graph, and your pages don't have content that a specific type would describe (events, products, recipes, a physical location), you may not need anything else. Schema is a way to describe a page accurately, not a ranking shortcut.

FAQ about WordPress schema markup

Does wp0 add schema markup to the theme it exports?

No. wp0 Studio exports a block theme with templates, patterns, theme.json and styles, plus a starter pages file. It contains no JSON-LD. Add structured data with an SEO plugin or a snippet after you install the theme on your WordPress site.

Does WordPress add schema markup by default?

No. WordPress core doesn't output JSON-LD. Most sites get their schema from an SEO plugin such as Yoast SEO, Rank Math, All in One SEO or SEOPress, which output a basic graph for the site, its pages and its posts.

Should I still add FAQPage schema?

Only if the page has a visible FAQ and you want to describe it accurately. Since August 2023, Google shows FAQ rich results only for well-known, authoritative government and health sites, so for most business sites FAQPage markup won't produce a rich result.

How do I check whether my schema is valid?

Use Google's Rich Results Test to see which Google features a URL is eligible for, and the Schema Markup Validator to check the markup against schema.org. After Google crawls the site, Search Console's Enhancements reports show errors for supported types.

Next step

Want to see what the exported theme contains before you plan your structured data? Open the sample site (no account needed) and browse the theme files, or read the install guide.

See it with a real site

Open the Fieldwork sample to see the setup, the WordPress preview and the site kit, or create a free account to build and save your own site.

The builder saves drafts in your browser and lets you download a WordPress site kit.