Technical SEO 5 min read

Adding schema markup to WordPress the right way

How to add schema markup to WordPress: JSON-LD, the schema types that matter for businesses, SEO plugin settings, custom schema and testing with Rich Results Test.

Usman Muhammad UsmanUpdated October 13, 2026
Adding schema markup to WordPress the right way

Schema markup is structured data that tells search engines what a page is about, such as a business, an article, a product or a set of breadcrumbs. It can make pages eligible for rich results, like star ratings or product prices in search. Google recommends the JSON-LD format, and WordPress makes it fairly easy to add. Here is how I approach it.

What schema does and does not do

Schema helps search engines understand the entities on a page and how they relate: who the organisation is, what the product costs, when an event happens. With that understanding, Google can show rich results and connect your site to your business in its knowledge systems.

Schema is not a direct ranking boost. It makes pages eligible for enhanced displays, which can improve click-through rates. Content quality, relevance and links still determine rankings.

JSON-LD format

Schema can be written as JSON-LD, Microdata or RDFa. Google recommends JSON-LD, a block of JavaScript-style data placed in the page head or body, separate from the visible HTML. It is easier to add, maintain and validate than markup woven into the HTML.

Most SEO plugins output JSON-LD automatically and connect entities into a graph, such as a WebPage that is part of a WebSite published by an Organization.

Schema setup
  1. 1Choose typesOrganization, Article, Product
  2. 2Plugin settingsBusiness details and logo
  3. 3Per-page typeMatch the content
  4. 4Custom JSON-LDFor extra details
  5. 5ValidateRich Results Test

The types that matter

For most business sites: Organization or LocalBusiness on the homepage, WebSite with site name, Article or BlogPosting on posts, Product on product pages, Service on service pages and BreadcrumbList across the site. Person schema suits personal brands and author pages.

Add Review or AggregateRating only when they reflect genuine reviews shown on that page. Event, JobPosting, Recipe, Course and VideoObject apply to specific content types.

Use your SEO plugin first

Rank Math and Yoast SEO output JSON-LD for the basics. In their settings, choose whether the site represents an organisation or a person, add the name, logo and social profiles, and set default schema types for posts, pages and products.

For each post or page, check the schema type in the plugin’s settings box. Rank Math includes a schema builder for adding types such as Service or FAQ to individual pages. See Rank Math vs Yoast SEO.

LocalBusiness schema

Local businesses benefit from LocalBusiness schema, or a more specific subtype such as Plumber, Dentist or LegalService, with name, address, phone, opening hours, geo coordinates and the URL of your Google Business Profile in sameAs. The details must match your profile and website.

Rank Math and Yoast’s local SEO add-on support LocalBusiness. For multiple locations, add schema to each location page. See Google Business Profile optimization.

Product schema for stores

WooCommerce and most themes output Product schema with name, image, price, availability and reviews. SEO plugins can enhance it. Check that price, currency and stock status match the visible page and update automatically.

Merchant listings in Google can show prices, shipping and return information. Adding shipping and return details to schema or Merchant Center helps. See e-commerce SEO.

FAQ and HowTo changes

In 2023, Google limited FAQ rich results to well-known, authoritative government and health websites, and removed HowTo rich results. Most business sites will no longer see FAQ rich results, though the markup is harmless and still describes the content.

Keep FAQ sections on pages where they help visitors, but do not add FAQ schema expecting extra visibility. Focus on schema types that still produce rich results for your content.

Custom schema when needed

For details plugins do not cover, such as specific service areas, opening hours exceptions or complex product information, add custom JSON-LD through the plugin’s schema builder or a small code snippet in a custom plugin.

Keep custom schema accurate and consistent with visible content. Markup that describes content not on the page, or misleading information, can lead to manual actions.

Avoid duplicate or conflicting schema

Themes, page builders, review plugins and SEO plugins can all output schema. Duplicate Product or Organization blocks with different values confuse search engines. View the page source or use a schema testing tool to see every block on the page.

Disable schema output in tools where it duplicates your SEO plugin. One clean, connected graph is better than several disconnected blocks.

Test your markup

Validate pages with Google’s Rich Results Test, which shows which rich results the page is eligible for and any errors. The Schema Markup Validator checks general schema.org validity beyond Google’s features.

Test each template: homepage, a page, a post, a product and a location page. Fix errors before warnings; warnings about recommended fields are worth fixing if the information exists.

Monitor in Search Console

Search Console’s Enhancements reports, such as Products, Merchant listings, Breadcrumbs and Review snippets, show valid and invalid items across your site. Check them after launches and theme changes, which can break schema.

When errors appear, fix the template and use the validation feature to confirm. Schema problems often affect many pages at once because they come from templates.

Getting help

Schema is part of my technical SEO service and every technical audit. I set up a clean, connected graph that matches your business and content.

For other ways to improve how your pages appear in search, read title tags and meta descriptions.

Key takeaways

  • Use JSON-LD, Google's recommended format.
  • Markup must match what is visible on the page.
  • Avoid duplicate schema from themes and plugins.
  • Validate each template and monitor Search Console enhancements.

Frequently asked questions

Do FAQ rich results still show?

Google limited FAQ rich results in 2023 to well-known government and health sites, so most sites will not see them, though the markup is harmless.

Does schema improve rankings?

Not directly. It can improve how pages appear, which may increase clicks.

Do I need a separate schema plugin?

Usually not. Rank Math or Yoast covers most needs. Specialist plugins help complex cases.

What is the difference between Organization and LocalBusiness?

LocalBusiness is a subtype for businesses with a physical location or service area, with address and hours.

Can schema cause a penalty?

Misleading or spammy markup can lead to a manual action removing rich results.

How do I see my site's schema?

Use the Rich Results Test or view the page source and look for JSON-LD script blocks.

Free website audit

Get a free audit of your website

Tell me your URL and I'll send a short, prioritized list of the speed, SEO and security fixes that will make the biggest difference.

  • No obligation, no sales call
  • 5.0 rating on Google and Upwork
  • Reply within one business day
Written by Muhammad UsmanWeb Development Team Lead with 5+ years building WordPress, WooCommerce, Shopify and Wix websites. Experience · Certificates About me

More on Technical SEO

All Technical SEO articles

Have a project in mind?

Tell me what you're building and I'll reply with next steps and an estimate.