How to Add Schema Markup in WordPress (With and Without a Plugin)

Table of Contents

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:

  1. Install Rank Math SEO from WordPress Plugin Directory
  2. Activate the plugin and complete basic setup
  3. Go to Posts → Add New or edit an existing post
  4. Scroll down to Rank Math SEO → Schema section
  5. Click Schema Generator
  6. Choose schema type:
    • Article
    • Blog Post
    • FAQ
    • HowTo
    • Product
  7. Fill required fields (headline, author, rating, etc.)
  8. Save / Update post

Option B: Using Yoast SEO (Limited Schema)

Steps:

  1. Install Yoast SEO
  2. Enable SEO features
  3. Yoast automatically adds:
    • Article schema
    • Breadcrumb schema
    • Organization / Person schema
  4. Go to SEO → Settings → Site Representation
  5. Add business or personal details

Option C: Using Schema Pro Plugin (Advanced)

Best for service websites & local businesses.

Steps:

  1. Install Schema Pro (Paid)
  2. Go to Schema Pro → Add New
  3. Select schema type (Local Business, Service, Review)
  4. Set display rules (entire site or specific pages)
  5. Map fields with post data
  6. 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)

  1. Edit your post
  2. Add Custom HTML block
  3. Paste schema code
  4. Update post

Option B: Add via Theme Header (Site‑Wide)

  1. Go to Appearance → Theme File Editor
  2. Open header.php
  3. Paste schema code before </head>
  4. Save changes

Option C: Using Code Snippets Plugin (Recommended)

  1. Install Code Snippets plugin
  2. Go to Snippets → Add New
  3. Paste JSON‑LD schema
  4. Select Run Everywhere
  5. Save & Activate

Method 3: Add FAQ Schema in WordPress

With Plugin (Rank Math)

  1. Edit post
  2. Add FAQ Block (Rank Math)
  3. Write questions & answers
  4. 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)

  1. Open Google Rich Results Test
  2. Paste URL or code
  3. Fix errors or warnings
  4. 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
Facebook
Twitter
LinkedIn
Pinterest

Interested in website maintenance for your company.?We can help. 

RECENT FAQs