Skip to page contentGo to the request box

How to add schema markup to a WordPress site

Most WordPress sites already get basic schema markup from an SEO plugin such as Yoast SEO or Rank Math, so adding schema well means filling in your business details in that plugin's settings, choosing the right type for each page, and pasting a JSON-LD block only where the plugin has no setting, without adding a second schema plugin.

Part of Add schema markup to your website

By Devon WellsDevon Wells leads product marketing at Kite, the AI marketer. He spent a decade marketing industrial AI, from self-driving trucks to computer vision, but now Kite handles most of the work itself. and KiteUpdated

On this page

What is schema markup, and how do you add it in WordPress?

Schema markup is a block of code in a page's HTML that tells search engines, in a fixed vocabulary, what the page is about: this is a plumbing business at this address, this is an article by this author, this is a product at this price. The vocabulary comes from Schema.org, and the usual format is JSON-LD, a short block of structured text inside a script tag that visitors never see. Google uses it to understand your business and to show rich results, such as product prices, event dates, and breadcrumb trails, in its search listings.

WordPress itself adds almost none of this. A fresh WordPress install publishes no business description, and only some themes add a little markup of their own. In practice, schema on a WordPress site comes from a plugin, and the plugin most sites already run for SEO covers the basics:

  • Yoast SEO. The free version publishes a connected description of your site, each page, your organization or the person behind the site, breadcrumbs, and an article description on every post. You set the business name, logo, and social profiles under Yoast SEO, then Settings, then Site representation. Each page's Schema tab in the editor lets you choose a page type, such as About page, Contact page, or FAQ page. Local business details, such as an address and opening hours, need the paid Yoast Local SEO add-on.
  • Rank Math. The free version has a Schema tab in the post editor with templates for common types, including Article, Event, Product, and Service. Your business details go in Rank Math's Local SEO settings, under Titles and Meta. The paid version adds a custom schema builder.
  • All in One SEO. It works the same way. You set your organization's details once in its search appearance settings, then choose a schema type for each page in the post editor.
  • WooCommerce. If you sell through WooCommerce, it publishes product markup with the name, price, and stock status on each product page by itself.

Dedicated schema plugins, such as Schema Pro and Schema & Structured Data for WP & AMP, offer more types and finer control. Most small business sites don't need one, and installing one next to an SEO plugin usually means two plugins describe your business twice.

How do you add schema markup by hand?

You add schema markup by hand by pasting a JSON-LD block into the page, and WordPress gives you two places to do it. For one page, add a Custom HTML block in the block editor and paste the block there. For markup that belongs on every page, such as your business description, use a header code plugin such as WPCode, or ask your developer to add it to the theme. A business description looks like this, with your own details in place of the placeholders:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Plumber",
  "name": "Your business name",
  "url": "https://www.example.com/",
  "logo": "https://www.example.com/logo.png",
  "telephone": "+1-555-555-0100",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "123 Main Street",
    "addressLocality": "Springfield",
    "addressRegion": "IL",
    "postalCode": "62701",
    "addressCountry": "US"
  },
  "openingHours": "Mo-Fr 08:00-18:00",
  "sameAs": [
    "https://www.facebook.com/yourbusiness",
    "https://www.linkedin.com/company/yourbusiness"
  ]
}
</script>

Two details catch people out. WordPress only keeps script tags for users allowed to post unfiltered HTML, which on a standard single site means administrators and editors, so the block can vanish when someone with a lower role saves the page. And if your SEO plugin already publishes a business description, a pasted one becomes a second business on the same page. In that case, put the details in the plugin's settings instead, or turn off the plugin's version first.

What does a plugin leave to you?

A schema plugin publishes whatever its settings say, so the quality of your markup depends on decisions the plugin can't make for you. It doesn't know whether you should be described as an Organization or as a specific kind of local business. It can't check that your address, phone number, and opening hours match your Google Business Profile, or notice that your logo setting points at an old file. It won't tell you that your theme and a second plugin are also publishing markup, or that the FAQ type you chose describes questions that aren't on the page.

A good result is one description of your business, shared by every page, with complete and accurate details. Each page then adds the one type that fits what it shows: a service page describes the service, a blog post describes the article, and an FAQ page describes the questions a visitor can actually read. Nothing on the site is described twice, and nothing in the markup claims something the page doesn't show.

Kite does that work. It reads the schema your site publishes today, decides what each page should say, writes the settings and code, and checks the result once it's live.

How to get started

Start by asking Kite, in the Kite web app or in Slack, to look at your site's schema markup. You might say:

"Check the schema markup on our WordPress site and tell me exactly what to add or change."
Send this to Kite

Or you can start from a specific page:

"Write the schema markup for our services page and our FAQ page. We use Yoast."

Kite is an AI marketer. It researches your business, builds a growth strategy, and ships the work that brings you new customers. By the time you ask, it already knows your business name, what you sell, where you operate, and which profiles you keep on other sites, so it can fill in most of the markup without a questionnaire. Where it's missing a fact, such as your opening hours, it asks you rather than guessing.

Kite needs no connection to read your schema, because it's published in your pages' public HTML. Connect Google Search Console through OAuth if you want Kite to see which rich results Google detects on your pages and whether it reports errors in them.

How Kite adds schema markup to a WordPress site

  1. What schema does your site publish today?

    Kite starts by reading the schema your pages actually publish, because that's what Google and other crawlers see. It loads your homepage, your main service or product pages, your contact page, and a few recent posts, then pulls out every JSON-LD block and any older-style markup woven into the HTML.

    For each block, Kite works out where it came from, since that decides where any fix belongs. Yoast SEO, Rank Math, and All in One SEO each leave a recognizable signature in the page source, and theme markup looks different from plugin markup. When it finds two sources describing the same thing, such as a plugin's Organization and a theme's own business description, it notes which one should stay.

    Kite also runs its site scan, which applies the 24 checks a marketing website controls and scores the result out of 100. Its structured data checks cover whether your site publishes a clear identity for your business, whether that identity lists your website, logo, and profiles on other sites, whether it includes contact details, and how many kinds of markup your site uses. Each check that doesn't fully pass comes with a recommended fix.

  2. What should each page say?

    Kite decides what each kind of page needs from what the page shows and what it knows about your business. Your business description goes on every page, as one shared block. Kite chooses its type with care: a business customers visit or call usually fits a specific local business type, such as Dentist, Plumber, or Restaurant, while a software company or online store fits Organization.

    From there, Kite assigns each kind of page its own type:

    • Service pages. A Service description that names the service, the area you serve, and your business as the provider.
    • Blog posts. An Article description with the headline, author, and the dates it was published and last updated. Your SEO plugin usually handles this, so Kite checks the author and dates rather than replacing it.
    • FAQ pages. An FAQPage description, but only when the questions and answers are visible on the page.
    • Products and events. Product markup comes from WooCommerce when you use it, and Kite fills gaps such as a missing brand. Events get their date, place, and ticket details.

    Kite applies Google's rules as it goes. Markup has to describe what a visitor can see on the page, so a hidden FAQ or a price that isn't shown doesn't get marked up. Review stars are a common request, and Kite tells you plainly when they won't work: Google doesn't show stars for reviews a business publishes about itself on its own site.

    Every fact in the markup comes from your site or your team's knowledge base. If your site doesn't list your opening hours, the markup leaves them out until you supply them.

  3. Plugin setting or pasted code?

    Kite decides, for each piece of markup, whether it belongs in a plugin setting or in a block of code, because a setting is easier to keep up to date. If your SEO plugin has a field for something, Kite gives you the value to type into that field. In Yoast SEO, that means the organization name, logo, and other profiles under Site representation, plus the page type in each page's Schema tab. In Rank Math, it means the Local SEO settings and the schema template on each page.

    When the plugin has no field for what a page needs, Kite writes a JSON-LD block. Each block links to the business description your plugin already publishes, using the same identifier, so Google reads one connected description instead of a second business. Kite doesn't add another schema plugin when the one you have can do the job. When two sources already overlap, it tells you which one to switch off and where the switch is.

  4. Writing the markup

    Kite writes complete, ready-to-paste markup, page by page, so you can work through the list in one sitting. Each item says exactly where it goes: the plugin setting to change, the page that gets a Custom HTML block, or the header code plugin for anything site-wide.

    Each change comes with a one-sentence reason, such as "Changed the business type from Organization to Plumber, because you take calls and serve customers at their homes." Anything Kite recommends removing, such as a theme's duplicate business description, comes with the reason too, so you or your developer can follow every decision.

  5. Checking that it worked

    Kite reads each page again after you've made the changes and confirms that the markup Google will see is the markup you meant to publish. It checks that each block is valid JSON-LD, that each page carries one business description, that the types match what the page shows, and that the details agree everywhere they appear. If a block is missing, the usual causes are a caching plugin serving the old page or a user role that strips script tags, and Kite tells you which one it is.

    Kite then runs the site scan again and compares the structured data checks with the first scan. With Search Console connected, it inspects the pages you changed. Google's inspection lists the rich result types it detected on each page and any errors in them, though it can lag a recent change by a few days.

    If you want the markup kept in shape, ask Kite to check it every month. Plugin and theme updates can change what your pages publish, so each check reads the live pages, flags anything that changed or broke, and sends you the fixes.

What the finished work contains

When Kite finishes, every page on your WordPress site carries one accurate description of your business plus the type that fits the page, and you have a record of what changed and why.

From KiteAdd schema markup to a WordPress site.Ready for your yes
  • Your business description One complete block, or the plugin settings that produce it, with your business type, name, website, logo, contact details, address and hours where they apply, and your profiles on other sites.
  • Page markup Ready-to-paste JSON-LD for each service, FAQ, event, or other page that needs a type your plugin doesn't set, each one linked to your business description.
  • Where each piece goes The plugin setting to change, the page that gets a Custom HTML block, or the header code plugin for anything site-wide, along with anything to switch off.
  • The reasons One sentence for every addition, change, and removal.
  • The before-and-after check Your site's score out of 100 before and after, the structured data results check by check, and the rich results Google detects on the pages you changed.

Common questions

Is schema markup still worth adding?

Yes, for Google. It helps Google identify your business and its details, and it earns rich results for products, events, breadcrumbs, and other supported types. Its reach has narrowed, though. Google stopped showing how-to rich results in 2023 and FAQ rich results in 2026, so markup added only for those snippets no longer changes how your listing looks.

Does schema markup help my business show up in AI answers?

Not measurably, as far as current evidence shows. The studies so far have found no effect on whether AI assistants cite a page, and Google says no special markup is needed for its AI features. What does matter is clear, specific pages about what you offer. To see where you stand, Kite's free AI visibility checker asks ChatGPT, Gemini, Perplexity, and Claude the questions your customers ask, and in about 45 seconds it shows whether they recommend your business and who they recommend instead. It's free and needs no account.

How many types of schema markup are there?

Schema.org defines several hundred types, but Google uses only a few dozen of them for rich results, and a small business site needs only a handful. Most need a business description, an article type on blog posts, and a service, product, or event type on the pages that show one.

Can Kite add the schema markup to my WordPress site directly?

Kite's WordPress connection works with blog posts, so on a self-hosted WordPress site it writes the settings and code for you to paste in. On a website Kite builds and hosts, it manages structured data itself, and every new page gets a title, description, share image, and structured data automatically when nobody has filled them in.

Does this work on WordPress.com?

Yes, if your plan lets you install plugins, because the same SEO plugins and Custom HTML blocks work there. On plans without plugins, you can't add your own schema, and you get only what WordPress.com and your theme publish.

Questions this page answers

  • schema markup wordpress
  • wordpress schema
  • wordpress plugin for schema markup
  • schema markup plugin wordpress
  • schema markup plugin for wordpress

About the author

Devon Wells leads product marketing at Kite, the AI marketer. He spent a decade marketing industrial AI, from self-driving trucks to computer vision, but now Kite handles most of the work itself.

Source /how-to/how-to-add-schema-markup-to-a-wordpress-site.md

You decide what matters. Kite does the work.

Your privacy choices

We use necessary cookies to keep the site working, plus optional cookies for analytics and marketing.

You can choose what to allow. You can read our Cookie Policy.