LCP ≤ 2.5sINP ≤ 200msCLS ≤ 0.1Schema JSON-LD
● Now booking WordPress and technical SEO projects. Free site audit with every enquiry.
Technical SEO

How to Add Schema Markup to WordPress (JSON-LD)

Schema markup explained: the types worth adding to WordPress, a JSON-LD example and how to validate it.

How to Add Schema Markup to WordPress (JSON-LD)

Schema markup is structured data that tells search engines what your content is: a business, an article, a product, a list of questions. Google recommends the JSON-LD format, which sits in a single script block and does not change how the page looks.

Which schema types matter most

  • Organization, LocalBusiness or ProfessionalService: who you are, where you are and how to contact you.
  • WebSite: the site name and, optionally, a sitelinks search box.
  • Article or BlogPosting: headline, author, published and modified dates, image.
  • BreadcrumbList: the path to the page, which Google can show in results.
  • Product, Review, Event, Recipe: where they genuinely apply.

FAQPage markup is still valid, but since 2023 Google shows FAQ rich results only for well-known government and health sites. Add it if it helps machines read your page, not because you expect a rich result.

A simple JSON-LD example

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "ProfessionalService",
  "name": "Example Studio",
  "url": "https://example.com/",
  "telephone": "+92 300 0000000",
  "address": {
    "@type": "PostalAddress",
    "addressLocality": "Karachi",
    "addressCountry": "PK"
  }
}
</script>

Three ways to add it in WordPress

  1. An SEO plugin that outputs schema for you.
  2. A theme that prints JSON-LD in wp_head, such as this one.
  3. A custom function in a small plugin or child theme.

Rules that keep markup safe

  • Mark up only what is visible on the page. Hidden or invented data can lead to a manual action.
  • Keep one source of truth, so the schema never disagrees with the page.
  • Do not run two plugins that both output the same schema type.

How to test

Paste the URL into Google’s Rich Results Test and the Schema Markup Validator. Then watch the Enhancements reports in Search Console for errors after launch.

Need help with this on your own site? Request a free WordPress and SEO audit.

Want this done on your site?

Get a free WordPress and technical SEO audit with clear next steps.

Request a free audit

Leave a comment

Your email address will not be published. Required fields are marked *