Schema markup is structured code that tells search engines exactly what your content is about. By adding this to your WordPress site, you increase your chances of richer search results such as star ratings, prices, or article dates, which boosts your click-through rate. You can set this up via a plugin for convenience, or manually with JSON-LD for more control. This article covers both approaches.
What is schema markup and why is it important
Schema markup (Schema.org) is a standardized way to label information on your page, so search engines understand its meaning rather than just reading the text. For WordPress there are three formats: JSON-LD, Microdata, and RDFa. JSON-LD is now the recommended standard, since it’s separate from your HTML and easy to add or adjust without affecting your page’s layout.
The benefits of properly implemented schema markup:
- Richer search results: stars, prices, author information, or FAQs directly in the search results
- Higher CTR: eye-catching snippets attract more clicks
- Better understanding by search engines: more relevant display for specific search queries
- Support for voice search and Google Discover
Adding schema markup with a plugin
For most WordPress users, an SEO plugin is the fastest route to correct schema markup. Well-known options include Yoast SEO, Rank Math, and Schema Pro. These plugins automatically generate the right markup based on your settings, without you having to write any code.
Install an SEO plugin
Go to your WordPress dashboard, click ‘Plugins’ β ‘Add New Plugin’ and search for Yoast SEO or Rank Math. Install and activate the plugin.
Configure the schema type
Open the plugin settings and choose your site type: business, person, blog, or webshop. Fill in name, logo, and contact details where requested.
Set schema per content type
For example, enable ‘Article’ schema for blog posts and ‘Product’ schema for product pages, so each type of content gets the right markup.
Check per page
Many plugins let you adjust schema settings per page or post, for example to add an FAQ block or a rating.
Adding schema markup manually with JSON-LD
If you want more control or don’t want to use an extra plugin, you can add JSON-LD manually. This is simply a piece of code you place in your theme’s header, for example via a child theme or a plugin for custom code.
Example of a basic Article schema:
<script type="application/ld+json">