How to Add Schema Markup to WordPress (2026)
Add structured data schema markup to WordPress for rich results. Learn JSON-LD, Yoast SEO schema, and manual implementation for articles, FAQs, and reviews.
How to Add Schema Markup to WordPress
Schema markup is structured data that helps search engines understand your content. Implemented correctly, it can earn rich results in Google — star ratings, FAQ dropdowns, recipe cards, event dates, and more — increasing click-through rates by 20-30%.
What Is Schema Markup?
Schema markup is code (usually JSON-LD format) you add to your pages that provides explicit information to search engines. Instead of Google inferring that a page is a recipe, schema markup declares it: "This page is a recipe with these ingredients and cooking time."
Method 1: Yoast SEO or Rank Math (Easiest)
Both Yoast SEO and Rank Math automatically add basic schema markup to every page:
- Article schema on blog posts
- WebSite schema on the homepage
- BreadcrumbList on all pages
- Organization or Person schema based on your settings
In Yoast SEO, configure your organization name and logo under Yoast SEO → Settings → Site basics. This populates Organization schema sitewide.
Method 2: Schema Pro Plugin
For richer schema types (LocalBusiness, Product, Course, Event, Review), Schema Pro adds a schema configuration panel to each post/page editor. Select the schema type, map fields to your content, and the plugin outputs valid JSON-LD.
Method 3: Manual JSON-LD
For full control, add JSON-LD directly in your theme's functions.php or via the Insert Headers and Footers plugin. Example FAQ schema:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "Your question here",
"acceptedAnswer": {
"@type": "Answer",
"text": "Your answer here"
}
}]
}
</script>
Validate Your Schema
Use Google's Rich Results Test at search.google.com/test/rich-results to validate your schema and preview how rich results will appear in search.
Ready to get started? Try SiteICO free.
Start FreeStart building with SiteICO
Deploy your WordPress site in under 1 second. Follow our guides to get the most out of the platform.
No credit card required.