Schema guides Platform
How to add schema to WordPress
Category: cms
Plugins and apps
- Yoast SEO
- Rank Math
- Schema Pro
Manual implementation
Child theme `functions.php` or `wp_head` hook: echo one `<script type="application/ld+json">` with `JSON.stringify` of your graph.
Troubleshooting
- Schema not appearing
Purge page cache (plugin + host CDN) and recheck; some optimizers strip head tags. - Duplicate graphs
Turn off JSON-LD in one SEO plugin or remove theme hard-coding. - Wrong type on posts
Set schema type per template in the SEO plugin schema module.
Overview
WordPress sites often stack theme, SEO plugin, and Woo modules—each may emit JSON-LD. Pick one source of truth per template (homepage, post, product) and disable the rest.
For bespoke graphs, enqueue a small PHP snippet that prints JSON-LD only where needed. Pair with SEWWA to generate valid graphs from your content model.