Skip to content
SEWWA

Schema guides Platform

How to add schema to WordPress

Category: cms

Plugins and apps

Manual implementation

Child theme `functions.php` or `wp_head` hook: echo one `<script type="application/ld+json">` with `JSON.stringify` of your graph.

Troubleshooting

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.

Try the free Schema Generator →