WordPress does not generate schema markup by default. You need a plugin to handle it automatically or configure it manually. The good news: if you already have Yoast SEO or Rank Math installed, part of the work is already done. The bad news: these plugins do not generate all the schema you need to maximize rich results.
What schema Yoast SEO generates automatically
Yoast SEO (free and premium versions) automatically generates a JSON-LD schema graph on every page. It is one of the most complete schema systems among SEO plugins.
- •WebPage or WebSite on the site homepage.
- •Article (or BlogPosting) on individual posts — includes author, publication, and modification dates.
- •BreadcrumbList on all pages with category structure.
- •Person or Organization as the author/site entity (configurable in Yoast → Search Appearance → Knowledge Graph).
- •SiteLinksSearchBox if you have internal search enabled.
What Yoast does NOT generate in its free version: FAQPage (requires adding it manually or with the Yoast Premium FAQ block), HowTo, Product/Offer for WooCommerce (requires the Yoast WooCommerce SEO plugin), and LocalBusiness.
In Yoast SEO → Search Appearance → Knowledge Graph, configure whether the site represents a Person or an Organization, and fill in all fields (name, logo, social profiles). This improves Google's Knowledge Panel for your brand.
What schema Rank Math generates automatically
Rank Math has one of the most powerful schema modules among free SEO plugins. It includes more schema types than Yoast in its free version.
- •Article, BlogPosting, or NewsArticle depending on content type.
- •FAQPage when you add the Rank Math FAQ block in the block editor.
- •HowTo when you use the Rank Math HowTo block.
- •Product and Review for WooCommerce (included in the free version).
- •LocalBusiness if you enable the local SEO module.
- •BreadcrumbList on all pages.
For advanced schema types (Recipe, Course, Event, JobPosting), Rank Math Pro includes a custom schema generator that lets you add any type with its properties without touching code.
Schema Pro: when you need full control
If Yoast or Rank Math do not generate the schema type you need, Schema Pro (by Brainstorm Force, the creators of Astra) is the most flexible plugin. It lets you assign schema types to specific post types and map schema properties to custom WordPress fields.
- 1.Install Schema Pro and go to Schema Pro → Settings.
- 2.Create a new schema rule: choose the type (Product, Recipe, Course, Event...) and assign it to the corresponding post type or category.
- 3.Map each schema property to a WordPress field (post title, ACF field, excerpt, featured image...).
- 4.Schema Pro automatically generates the JSON-LD for all pages that match the rule.
How to add FAQPage manually in WordPress
If you use Gutenberg (block editor), the easiest way to add FAQPage is with the Rank Math or Yoast SEO Premium FAQ block. If you prefer to add it manually without plugin dependencies:
// In functions.php: add FAQPage schema to specific posts
add_action('wp_head', function() {
if (is_single() && has_tag('faq')) {
$faq_schema = [
'@context' => 'https://schema.org',
'@type' => 'FAQPage',
'mainEntity' => [
[
'@type' => 'Question',
'name' => 'First question?',
'acceptedAnswer' => [
'@type' => 'Answer',
'text' => 'Answer to the first question.'
]
],
]
];
echo '<script type="application/ld+json">'
. wp_json_encode($faq_schema)
. '</script>';
}
});How to add schema for WooCommerce
WooCommerce by default generates basic product schema (Microdata in the HTML), but not the structured JSON-LD that Google prefers. For complete product schema with price, availability, and ratings in JSON-LD format:
- •Rank Math (free): enable the WooCommerce module in Rank Math → Modules. It automatically generates Product + Offer + AggregateRating.
- •Yoast WooCommerce SEO (paid): Yoast's official WooCommerce add-on. Integrates product schema with Yoast's graph.
- •Schema Pro: create a rule that applies the Product type to all WooCommerce product post types and maps the price and stock fields.
Verification: confirm the schema works
After configuring the plugin, verify that the generated schema is correct with iRankly's Schema Validator. Enter the URLs of your most important pages — homepage, articles, products, contact page — to confirm that the detected schema types are as expected and that no required properties are missing.
Try the tool for free
Schema Markup ValidatorAnalyze your URLs with {tool} by iRankly. No sign-up, no credit card.
If you have multiple SEO plugins active simultaneously (Yoast + Rank Math, for example), they may generate duplicate or conflicting schema. Use only one main SEO plugin and disable the schema module in the others.