How to Add Structured Data to WordPress: A Complete Guide

How to Add Structured Data to WordPress: A Complete Guide

Structured data unlocks rich snippets in Google. Here is how to add it to WordPress correctly.

Structured data is one of the few SEO techniques where you have direct influence over how Google displays your page in search results. By adding structured data, you give Google the context it needs to show rich results: expandable FAQ questions, step-by-step instructions, review stars, pricing information and more. This almost always leads to a higher click-through rate, more clicks and greater visibility.

In this article

  1. What is structured data?
  2. Why structured data for SEO?
  3. The three implementation methods
  4. The most valuable schema types
  5. Step by step: adding structured data via JSON-LD
  6. Structured data in WordPress
  7. Frequently asked questions

What is structured data?

Structured data is a standardised way of adding extra information to a web page. Using a standardised vocabulary, schema.org, ensures search engines understand the information regardless of its specific format. The difference from regular HTML: structured data explicitly defines the meaning of information. Regular HTML says 'here is text'. Structured data says 'this is a product name, this is the price, this is the average rating'.

Why structured data for SEO?

BenefitEffect
Rich resultsVisually richer SERP display attracts more attention and clicks
Higher CTRExtended snippets with stars, FAQ or instructions lead to more clicks
AI OverviewsGoogle's AI answers actively draw from structured data for facts
More SERP spaceFAQ schema expands in search results, occupying more screen real estate
Better Google understandingGoogle interprets your page context more precisely

The three implementation methods

1. JSON-LD (recommended)

JSON-LD is Google's recommended implementation method. You add a script block in the head or body of your HTML. The key advantage: JSON-LD is completely separate from visible HTML content, making implementation and maintenance straightforward.

2. Microdata

Microdata integrates structured data as attributes within existing HTML tags. More complex to maintain and less flexible than JSON-LD. Almost all modern implementations use JSON-LD.

3. RDFa

An older format embedded as HTML attributes. Still used on some platforms but JSON-LD is the modern standard.

The most valuable schema types

FAQ schema

FAQ schema marks up questions and answers on your page. Google can display these as expandable questions directly in search results, taking significantly more screen space and increasing CTR. Use it on pages that have a frequently asked questions section.

HowTo schema

HowTo schema marks up step-by-step instructions. Google can display these as a numbered step list in search results. Ideal for instructional content like 'How to set up Google Search Console'.

Article schema

Article schema identifies a blog post or news article as such. It gives Google information about the publication date, author and image — helping with showing the date in the snippet.

LocalBusiness schema

LocalBusiness schema gives Google structured information about a physical business: name, address, phone number, opening hours, category and geographic coordinates. Increases the chance of appearing in the Local Pack and knowledge panels.

Product and AggregateRating

For online shops, Product schema is essential. It passes price, availability and SKU. Combined with AggregateRating schema, review stars appear in search results.

Step by step: adding structured data via JSON-LD

  1. Determine the schema type that applies to the page — visit schema.org for full documentation
  2. Generate the JSON-LD code via Google's Structured Data Markup Helper or a plugin like Rank Math or Yoast SEO
  3. Add the code in a <script type="application/ld+json">...</script> block in the head or body of your HTML
  4. Test the implementation via Google's Rich Results Test at search.google.com/test/rich-results
  5. Monitor performance via the Enhancements report in Google Search Console

Structured data in WordPress

Rank Math: comprehensive schema support

Rank Math offers the most complete built-in schema support for WordPress. Under Rank Math → Schema you can set a schema type per page or post. Rank Math supports more than 20 schema types including FAQ, HowTo, Article, LocalBusiness, Product, Recipe and Event.

Yoast SEO Premium: FAQ and HowTo blocks

Yoast SEO Premium offers built-in Gutenberg blocks for FAQ and HowTo. Drag a FAQ block into your content, add questions and answers, and Yoast automatically generates the corresponding schema.

Schema Pro: specialised schema plugin

Schema Pro is a paid plugin (approximately $79/year) providing the most extensive schema support, including conditional rules. For websites with complex schema requirements or multiple content types, Schema Pro is the most flexible solution.

Frequently asked questions

Does structured data directly improve rankings?

No. Google has confirmed that structured data itself is not a direct ranking factor. However, the indirect impact is significant: higher CTR from rich results, better interpretation by Google and a greater chance of featured snippets and AI citations.

Which schema type delivers the most for most websites?

FAQ schema has the most direct and visible impact for informational websites. It significantly increases SERP space through expandable questions. For e-commerce, Product schema with AggregateRating is the highest priority.

How long until rich results appear?

After Google re-crawls your page, it can take from a few hours to several weeks for rich results to appear. Google's Rich Results Test shows immediately whether your schema is correctly implemented.

Can I use multiple schema types on the same page?

Yes, and it's recommended. A blog page can simultaneously contain Article, FAQ and BreadcrumbList schema. Ensure each schema is correct for the content it describes.

More organic traffic for your website?

Menno de Haan helps SMEs and entrepreneurs rank higher in Google through technical SEO, content strategy and link building. Schedule a free introductory call.

Schedule a free call →
How to Add Structured Data to WordPress: A Complete Guide

10+ years in SEO · from SMEs to enterprise