How to Add Schema Markup in WordPress (With and Without a Plugin)
Schema Markup (also called structured data) helps search engines understand your content better. It can improve your visibility in Google by enabling rich results like star ratings, FAQs, breadcrumbs, product prices, and more. Below is a simple, step‑by‑step guide with multiple methods, suitable for beginners and advanced users.
What is Schema Markup? (Simple Explanation)
Schema Markup is a special type of code added to your website that tells search engines:
- What your content is about
- Whether it’s a blog post, product, service, review, FAQ, or business
- Important details like author, rating, price, location, and date
Google mainly recommends JSON‑LD format, which is easiest and safest to use.
Method 1: Add Schema Markup Using a Plugin (Easiest Way)
This method is best for non‑technical users and bloggers.
Option A: Using Rank Math SEO Plugin
Step‑by‑Step:
- Install Rank Math SEO from WordPress Plugin Directory
- Activate the plugin and complete basic setup
- Go to Posts → Add New or edit an existing post
- Scroll down to Rank Math SEO → Schema section
- Click Schema Generator
- Choose schema type:
- Article
- Blog Post
- FAQ
- HowTo
- Product
- Fill required fields (headline, author, rating, etc.)
- Save / Update post
Option B: Using Yoast SEO (Limited Schema)
Steps:
- Install Yoast SEO
- Enable SEO features
- Yoast automatically adds:
- Article schema
- Breadcrumb schema
- Organization / Person schema
- Go to SEO → Settings → Site Representation
- Add business or personal details
Option C: Using Schema Pro Plugin (Advanced)
Best for service websites & local businesses.
Steps:
- Install Schema Pro (Paid)
- Go to Schema Pro → Add New
- Select schema type (Local Business, Service, Review)
- Set display rules (entire site or specific pages)
- Map fields with post data
- Publish schema
Method 2: Add Schema Markup Without a Plugin (Manual Method)
This method gives full control and is ideal for developers or SEO professionals.
Step 1: Create JSON‑LD Schema Code
Example for a Blog Post:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "How to Add Schema Markup in WordPress",
"author": {
"@type": "Person",
"name": "name"
},
"datePublished": "2026-01-10",
"dateModified": "2026-01-10"
}
</script>
Step 2: Add Code to WordPress
Option A: Using Custom HTML Block (Post‑Specific)
- Edit your post
- Add Custom HTML block
- Paste schema code
- Update post
Option B: Add via Theme Header (Site‑Wide)
- Go to Appearance → Theme File Editor
- Open
header.php - Paste schema code before
</head> - Save changes
Option C: Using Code Snippets Plugin (Recommended)
- Install Code Snippets plugin
- Go to Snippets → Add New
- Paste JSON‑LD schema
- Select Run Everywhere
- Save & Activate
Method 3: Add FAQ Schema in WordPress
With Plugin (Rank Math)
- Edit post
- Add FAQ Block (Rank Math)
- Write questions & answers
- Save post
Without Plugin (Manual)
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "What is Schema Markup?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Schema markup helps search engines understand content"
}
}]
}
</script>
Method 4: Add Local Business Schema (Important for SEO)
Best For:
- Service businesses
- Local shops
- Agencies
Required Details:
- Business name
- Address
- Phone number
- Opening hours
- Website URL
Use Rank Math or Schema Pro for easiest setup.
Method 5: WooCommerce Product Schema
Automatic (Recommended)
- WooCommerce + Rank Math
- Product schema auto‑generated
Manual (Advanced)
Add price, availability, reviews via JSON‑LD
How to Test Schema Markup (Must Do)
- Open Google Rich Results Test
- Paste URL or code
- Fix errors or warnings
- Re‑index page in Google Search Console
Final Thoughts
Schema Markup does not guarantee rankings, but it improves CTR, visibility, and trust. Start with basic article schema, then move to FAQ, HowTo, and Local Business schema as your site grows.
If you want, I can also:
- Create ready‑made schema templates
- Suggest best schema for your niche
- Audit your current schema setup
