Schema markup helps search engines understand your content better, which can lead to rich snippets in search results—star ratings, prices, FAQs, and other eye-catching details that boost click-through rates. If you’re running a WordPress site, adding schema is straightforward whether you use a plugin or add it manually.
This guide covers everything: what schema types matter most, how to implement them with popular plugins, how to add custom schema manually, and how to test your markup.
What is Schema Markup?
Schema markup (also called structured data) is code you add to your website that helps search engines understand the context of your content. It doesn’t change how your site looks—it’s invisible to visitors—but it tells Google exactly what each element means.
Without schema: Google sees “4.8” and guesses it might be a rating.
With schema: Google knows it’s a 4.8-star rating out of 5, based on 127 reviews.
When Google understands your content clearly, it can display rich results—enhanced listings with images, ratings, prices, FAQs, and other details that stand out from plain blue links.
Why Schema Matters for WordPress Sites
- Higher click-through rates: Rich snippets attract more clicks than plain listings
- More qualified traffic: Users see key information upfront, so those who click are more likely to convert
- Voice search optimisation: Voice assistants use structured data to answer questions
- AI search features: Google’s AI Overviews increasingly rely on schema to source information
- Competitive advantage: Many sites still don’t use schema—adding it helps you stand out
Most Useful Schema Types for WordPress
There are hundreds of schema types, but these are the most valuable for typical WordPress sites:
Article Schema
For blog posts and news articles. Helps Google show author, publish date, and headline in search results.
Product Schema
For e-commerce. Displays price, availability, reviews, and images directly in search results. Essential for WooCommerce stores.
Local Business Schema
For businesses with physical locations. Shows address, phone number, opening hours, and service area.
FAQ Schema
For pages with frequently asked questions. Creates expandable Q&A dropdowns directly in search results—taking up more real estate.
How-To Schema
For instructional content. Shows step-by-step instructions, images, and time estimates in search.
Review Schema
For review content. Displays star ratings in search results—powerful for attracting clicks.
Event Schema
For events. Shows date, time, location, and ticket information.
Recipe Schema
For food blogs. Displays cook time, calories, ratings, and ingredients directly in search.
Method 1: Add Schema Using Plugins (Easiest)
For most WordPress users, plugins are the best way to add schema. They handle the technical details and integrate with your existing content.
Rank Math SEO
Rank Math is our recommended option. It has excellent schema support built-in and is easy to configure.
How to set up:
- Install and activate Rank Math
- Go to Rank Math > Titles & Meta
- Select the content type (Posts, Pages, Products)
- Choose the default Schema Type (Article, Product, etc.)
- For individual posts, edit the post and find the Schema tab in the Rank Math sidebar
- Click “Schema Generator” to add or customise schema for that specific page
Rank Math supports Article, Product, Recipe, Event, FAQ, How-To, Local Business, Course, Book, and many more schema types.
Yoast SEO
Yoast SEO also adds basic schema automatically. It’s less customisable than Rank Math but handles the essentials.
How to set up:
- Install Yoast SEO
- Go to Yoast SEO > Search Appearance
- Under Content Types, set the default Schema for Posts and Pages
- For FAQ schema, use Yoast’s FAQ block in the block editor
Schema & Structured Data for WP
Schema & Structured Data for WP & AMP is ideal if you need advanced schema types that other plugins don’t support. It offers 35+ schema types and automatic schema generation.
WooCommerce-Specific Schema
If you run a WooCommerce store, product schema is critical. Options:
- Rank Math: Automatically adds Product schema to WooCommerce products
- Yoast WooCommerce SEO: Premium addon that enhances WooCommerce schema
- JEQL: Adds product schema to JSON-LD format
Method 2: Add Schema Manually (For Developers)
Need a schema type your plugin doesn’t support? You can add JSON-LD schema manually. Google prefers JSON-LD format because it’s clean and doesn’t affect your HTML structure.
Step 1: Generate Your Schema Code
Use one of these tools to create your JSON-LD:
- Google’s Structured Data Markup Helper
- Merkle’s Schema Generator
- Schema.org documentation (for manual coding)
Step 2: Add to Specific Pages
Option A: Use Custom Fields
- In the WordPress editor, click the three dots menu > Preferences > Panels
- Enable “Custom Fields”
- Scroll down and add a new custom field named “schema”
- Paste your JSON-LD code as the value
- Add this to your theme’s functions.php to output it:
function output_custom_schema() {
$schema = get_post_meta(get_the_ID(), 'schema', true);
if ($schema) {
echo '<script type="application/ld+json">' . $schema . '</script>';
}
}
add_action('wp_head', 'output_custom_schema');
Option B: Use a Code Snippets Plugin
Install the Code Snippets plugin and add your schema there. This is safer than editing theme files directly.
Step 3: Add Site-Wide Schema
For schema that appears on every page (like Organization or Website schema), add this to your theme or via Code Snippets:
function add_organization_schema() {
?>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Your Company Name",
"url": "https://yourwebsite.com",
"logo": "https://yourwebsite.com/logo.png",
"sameAs": [
"https://facebook.com/yourpage",
"https://twitter.com/yourhandle",
"https://linkedin.com/company/yourcompany"
]
}
</script>
<?php
}
add_action('wp_head', 'add_organization_schema');
JSON-LD Examples
Local Business Schema:
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Your Business Name",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main Street",
"addressLocality": "London",
"postalCode": "SW1A 1AA",
"addressCountry": "GB"
},
"telephone": "+44 20 1234 5678",
"openingHours": "Mo-Fr 09:00-17:00"
}
FAQ Schema:
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "What is schema markup?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Schema markup is code that helps search engines understand your content better."
}
}]
}
How to Test Your Schema Markup
Always validate your schema before publishing. Use these tools:
- Google Rich Results Test: Shows whether your page is eligible for rich results and highlights any errors
- Schema.org Validator: Validates your code against the schema.org specification
- Google Search Console: Check the Enhancements section for ongoing schema monitoring and errors across your entire site
Common Schema Mistakes to Avoid
1. Marking up content that doesn’t exist on the page
Schema must reflect what’s actually visible on the page. Don’t add Review schema if you haven’t published reviews.
2. Using incorrect schema types
Make sure you’re using the right type. An Article is not the same as a BlogPosting or NewsArticle—each has specific requirements.
3. Duplicate schema from multiple plugins
If you have multiple SEO plugins, you might be outputting duplicate schema. Check your page source and use only one plugin for schema.
4. Missing required properties
Each schema type has required fields. Product schema needs name and offers. Article schema needs headline, author, and datePublished. Missing required fields triggers errors.
5. Not updating schema when content changes
If product prices or event dates change, update your schema. Outdated information can lead to penalties.
Frequently Asked Questions
Does schema directly improve rankings?
No, schema isn’t a direct ranking factor. However, it can improve click-through rates, and higher CTR can indirectly help rankings. It also helps with voice search and AI features.
Will schema slow down my site?
No. JSON-LD is lightweight code that has negligible impact on page speed.
Can I use multiple schema types on one page?
Yes. A product page could have Product, Organization, and BreadcrumbList schema. Just ensure they don’t conflict.
How long until schema shows in search results?
It depends on when Google recrawls your page. Usually a few days to weeks. Rich results aren’t guaranteed—Google decides what to display.
Does my theme already have schema?
Many modern themes include basic schema (Organization, Website). Check your page source for “application/ld+json” to see what’s already there.
Summary
Schema markup is one of the most underused SEO tactics. For WordPress sites, adding it is straightforward:
- Use a plugin like Rank Math or Yoast for automatic schema on posts, pages, and products
- Add custom schema manually for specific needs using JSON-LD
- Test your markup with Google’s Rich Results Test before publishing
- Monitor in Search Console for ongoing errors
Even basic schema implementation can make your search listings more attractive and informative, leading to more clicks from the right visitors.
Need help implementing schema on your WordPress site? Contact us for a technical SEO audit.