How to add schema in WordPress with Yoast or Rank Math
Pick one SEO plugin. In Yoast SEO, set your business under Yoast SEO, Settings, Site representation, and each page's type in the Schema tab. In Rank Math, use Rank Math SEO, Titles and Meta, Local SEO, and the Schema tab's Schema Generator per post. Then test, and make sure no other plugin or theme adds a second copy.
The short version
- Use one SEO plugin for schema. Two plugins means two sets of markup.
- Set your business details once, in the plugin’s site-wide settings.
- Choose the right type for each page in the plugin’s Schema tab.
- Some features, such as multiple locations, need a paid version.
- Test after setup and after plugin updates.
These steps were checked against Yoast’s and Rank Math’s own help pages on October 31, 2026. Plugins change their screens often, so if a label has moved, their help pages (in this page’s sources) are the place to look.
How do I set it up in Yoast SEO?
- Go to Yoast SEO, then Settings, then Site representation. Yoast’s Organization schema page gives this path.
- Choose whether the site represents an organization or a person. Yoast’s implementation guide says this choice decides which structured data it outputs.
- Enter the organization name and upload a logo. Fill in the other company information the screen offers. For the logo, Google says at least 112 by 112 pixels.
- For a local business with an address, Yoast’s page says the business-type and local details come from its Local SEO add-on, under Local SEO > Business info, which needs Yoast’s paid products. Yoast’s developer documentation says the Organization “may be eligible for extension into a LocalBusiness type” when location information is available.
- For each page or post, open the Schema tab in the Yoast sidebar or meta box and set the Page type or Article type if the default doesn’t fit, such as “Contact page” or “About page.”
- Test a few pages. See how to test your schema.
Yoast describes its output as a connected graph: the page, the website and your organization linked together, which is why one correct Site representation setting carries through every page.
How do I set it up in Rank Math?
- Go to Rank Math SEO, then Titles and Meta, then Local SEO. Rank Math’s Local SEO guide gives this path.
- Choose Person or Company, then fill in the name, logo, URL, email, address, business type, opening hours and phone. Rank Math says the phone number should not be left blank for a business.
- Set a default type for posts under Rank Math SEO, Titles and Meta, Posts, in the Schema Type option, per Rank Math’s rich snippets guide.
- For individual pages, open the Rank Math panel in the editor, go to the Schema tab, click Schema Generator, pick a type such as Service or Event, and fill in its fields.
- Multiple locations need Rank Math PRO, according to its Local SEO guide.
- Test the pages.
Rank Math’s free version includes many types, among them Service, Event, Product, Local SEO, Breadcrumb and WooCommerce schema, according to its own list.
Why use a plugin at all?
Writing JSON-LD by hand on every page is slow and easy to get out of step. A plugin builds the markup from one set of settings, so when you change your phone number in one place, every page updates. That’s the main safety benefit: one source of truth. Hand-written markup still has a place for unusual pages, but it should sit alongside the plugin’s, not repeat it.
What are the common mistakes?
- Two SEO plugins active at once, each adding its own Organization and breadcrumbs.
- A theme or page builder adding schema too. Some themes and builders output their own markup. Check with the Schema Markup Validator for duplicates.
- Business details in the plugin that differ from the page, such as old hours. Google’s general guidelines require markup to match visible content.
- Turning on every schema option because it’s there, including review stars for your own business. See who can get review stars.
- Adding FAQ blocks just for schema. Google retired FAQ rich results in May 2026. See whether FAQ markup is still worth it.
- Updating plugins without retesting. A major update can change output.
What if the markup looks wrong after setup?
View the page source and search for application/ld+json to see each block and which plugin added it. If you find duplicates, turn off schema output in the plugin or theme you’re not using for it. If values are wrong, fix them in the plugin settings, not in the page. If a type is missing, check whether it needs the paid version. Our guide to common schema mistakes covers more. Our answers on plugin updates and how many plugins is too many help with the plugin side.
How much does it cost, and how long does it take?
Both plugins have free versions that cover a single-location business’s basic markup. Local and multi-location features may need a paid plan; check each plugin’s own pricing page. Setup takes about an hour, including testing.
How does E-3 handle this?
On WordPress sites in website care, the aim is one plugin in charge of schema, with business details taken from the client’s visible pages. For hosted sites, E-3’s monitoring tracks waiting updates and known plugin vulnerabilities. Plugin and schema changes are tested on a staging copy first.
Related questions
Sources
- Schema SEO with Yoast SEO: implementation guide (Yoast)
- The Organization schema for your business (Yoast)
- Schema piece: Organization (Yoast developer portal)
- Local SEO settings (Rank Math Knowledge Base)
- Rich snippets and the Schema Generator (Rank Math Knowledge Base)
- General structured data guidelines (Google Search Central)
Next step
- Next: Which schema mistakes cause real problems?The next guide in Schema for owners.
- Free website checkPublic checks on your own site, then an action plan of what to fix first.
Still stuck? Ask E-3 for an answer from our help guides.
Rather we handled schema for owners for you?
It’s part of what we do every week for small businesses, as part of website care. Start with a free check of your site and profile, or call and ask.