To test schema markup in WordPress correctly, check three different things: whether the code is valid, whether Google supports the marked-up search feature, and whether the published page outputs accurate schema that matches its visible content. Use Rank Math’s code validation before publishing, Google’s Rich Results Test for Google-supported types, the Schema.org Validator for the complete vocabulary, and Search Console’s URL Inspection after the page is live.
A green result in one tool is not the end of the audit. It can confirm valid syntax or eligibility, but it cannot guarantee that Google will display a rich result. This guide gives WordPress publishers and Pakistani SEO agencies a repeatable workflow that separates those questions and produces evidence a client can understand.

The three layers of schema validation
Most schema mistakes happen because people treat every validator as if it answers the same question. Use this model instead:
Validation layer |
Question |
Best tool |
|---|---|---|
Vocabulary and syntax |
Is the Schema.org markup readable and correctly structured? |
Schema.org Markup Validator |
Google feature eligibility |
Does Google recognize this type for a supported rich result, and are required fields present? |
Google Rich Results Test |
Rendered reality |
Does the live URL output the correct schema after WordPress, the theme, plugins and caching have processed it? |
Rich Results Test URL mode and Search Console URL Inspection |
Google recommends JSON-LD for most implementations because it is generally easier to maintain, but JSON-LD is not automatically accurate just because it parses. The entities and properties must still describe the content users can see on that page.
Research method for this guide
This workflow was checked on 13 October 2026 against Google Search Central’s structured-data documentation, Google’s current general structured-data guidelines, the Schema.org validator documentation and Rank Math’s current testing instructions. The goal is not to maximize the number of types on a page. It is to verify a smaller, accurate graph that reflects the page and is maintainable.
Before testing: decide what the page actually represents
Start with the page’s main purpose, not a plugin dropdown. A normal editorial post is usually an Article or BlogPosting. A genuine author profile can be a ProfilePage. A service landing page may describe a Service, while the sitewide publisher may be an Organization. BreadcrumbList describes navigation rather than the main content.
The existing guide to schema markup for AI search explains which entities and relationships are worth implementing. This article begins at the next step: proving that the selected markup is technically correct and truthful.
Write down the expected graph
Before opening a validator, list the expected nodes in plain language. For this article, a sensible expectation is:
- The WebSite represents ShazzSEO.
- The Organization represents the publisher.
- The WebPage represents this URL.
- The Article is the main item on the WebPage.
- The Person is the article’s author.
- The BreadcrumbList describes the navigation path.
This short list makes duplicate publishers, wrong authors and disconnected entities much easier to spot.
Step 1: review the visible WordPress fields
Schema plugins pull data from WordPress. Confirm the post title, excerpt, featured image, author, publication date, modified date and canonical URL before testing the generated code. Check that the author account points to the correct public profile and that the image is crawlable.
If the visible page says one thing and the schema says another, changing the validator output alone does not solve the underlying inconsistency. For author-specific checks, use the WordPress author SEO and ProfilePage guide.
Step 2: inspect Rank Math’s generated schema
Open the post in WordPress, open Rank Math’s Schema tab and review the schema assigned to the page. Rank Math’s documentation explains that its Code Validation area exposes the generated JSON-LD, which can then be copied into a testing tool.
Check these points before publishing:
- The primary schema type matches the main content.
- The headline and description are page-specific.
- The author is the real author, not the website name.
- The publisher is the correct Organization.
- The featured image URL is present and relevant.
- Dates use valid values and are not future-dated accidentally.
- Entity identifiers remain consistent rather than creating duplicate Person or Organization nodes.
Also check whether a theme, ecommerce plugin or second SEO plugin adds its own JSON-LD. Rank Math warns that overlapping schema generators can create conflicts. One coherent graph is easier to maintain than several competing blocks.
Step 3: test the code with Google Rich Results Test
Open the Google Rich Results Test, choose the Code option and paste the generated markup. This test focuses on structured-data types that Google supports for rich results. Expand every detected item and separate errors from non-critical warnings.
Errors versus warnings
An error usually means a required property is missing or invalid, so that item is not eligible for the corresponding rich result. A warning generally identifies a recommended property. Recommended fields can improve completeness, but adding invented data merely to remove a warning is worse than leaving the field absent.
Google also states that valid markup does not guarantee a rich result. Eligibility, quality policies, page content and Search systems still matter.
Step 4: run the same code through Schema.org Validator
Next, paste the markup into the Schema.org Markup Validator. This tool extracts JSON-LD, RDFa and Microdata, displays the structured-data graph and identifies syntax mistakes. It is broader than the Rich Results Test because it is not limited to Google’s supported search features.
This distinction matters for Person, Organization, Service and other useful entity markup that may not produce a dedicated Google preview. A type can be valid Schema.org vocabulary even when the Rich Results Test does not show it as a rich-result feature.
Step 5: compare every important value with the page
Validation is not only a code task. Open the page preview beside the extracted schema and compare the important facts one by one:
- Does the marked-up headline match the article?
- Is the named author visibly credited?
- Does the publisher use the same brand name and URL sitewide?
- Is the image actually on or representative of the page?
- Are ratings, prices, FAQs or events visible to users?
- Does the canonical URL identify this page rather than another template?
Google’s quality guidelines prohibit misleading or irrelevant markup and say structured data should represent visible page content. A technically valid block can therefore still be inappropriate.
Step 6: publish, purge caches and test the URL
Code mode tests the proposed block. URL mode tests what the site actually serves. After publishing or updating the post:
- Purge the relevant page cache and CDN cache.
- Open the public URL in a private browser window.
- Run the Rich Results Test using the URL option.
- Run the Schema.org Validator using Fetch URL.
- Compare the detected output with the pre-publication test.
This catches production-only problems such as an old cached graph, a minification issue, a consent tool altering scripts, a theme adding duplicate schema or a staging value leaking into the live page.
Step 7: inspect the live URL in Search Console
Use Search Console’s URL Inspection tool after deployment. Test the live URL to see whether Google can access and render the page. Once Google recrawls it, monitor the relevant rich-result status reports for supported types.
Testing and indexing are separate events. A valid test does not mean Google has recrawled the URL, and requesting indexing does not guarantee that a rich result will appear.
Common WordPress schema problems and fixes
Problem |
Likely cause |
Practical fix |
|---|---|---|
Two Article or Organization nodes disagree |
Theme and SEO plugin both generate schema |
Choose one primary generator and disable the duplicate output |
Wrong author or publisher |
Incorrect WordPress profile or Knowledge Graph settings |
Correct the source profile and retest the live URL |
Missing image |
No featured image, blocked file or unsupported source value |
Add a relevant crawlable image and verify its final URL |
Valid code but no rich result |
Unsupported type, quality issue, no recrawl or Google selection |
Check feature-specific rules, content parity and index status |
Code test passes but URL test fails |
Cache, plugin conflict or different rendered output |
Inspect page source, purge caches and isolate the output source |
Warning for a recommended property |
Optional information is absent |
Add it only when it exists and is visible; never invent it |
A reusable agency evidence sheet
For every audited template, record the URL, page type, expected schema nodes, Google test result, Schema.org result, live-test date, errors, warnings, duplicate generators and recommended owner. Attach screenshots or exported links where the tools allow it.
This is particularly useful for Pakistani agencies working asynchronously with overseas clients. It turns “schema fixed” into a reproducible handoff and fits naturally into a broader SEO audit tool workflow.
Frequently asked questions
Should I use Rich Results Test or Schema.org Validator?
Use both. Rich Results Test checks Google-supported rich-result eligibility. Schema.org Validator checks the broader structured-data vocabulary and graph.
Can I test schema before publishing?
Yes. Copy the generated JSON-LD from Rank Math and use the Code option in both validators. After publication, repeat the checks with the public URL because the rendered output may differ.
Does valid schema improve rankings?
Valid structured data helps search systems understand page information and can make eligible pages available for supported search features. Google does not promise higher rankings or a rich result simply because markup validates.
Should I fix every warning?
No. Fix errors first. Add recommended properties only when the information is accurate, relevant and visible or otherwise permitted by the feature’s documentation.
How often should schema be retested?
Retest after SEO-plugin, theme or template changes; after changing authorship, organization details or major content fields; and when Search Console reports a new structured-data problem.
Final checklist
- The schema type matches the page’s main purpose.
- Visible content and structured data agree.
- Rank Math outputs one coherent graph.
- Google-supported markup passes Rich Results Test without critical errors.
- The wider graph parses in Schema.org Validator.
- The published URL produces the same intended output.
- Google can access the live page and its images.
- The test evidence and date are recorded.
Conclusion
A reliable WordPress schema check is a sequence, not a single green badge. Define the intended entities, review the source fields, test the code, validate the broader graph, compare it with visible content, publish, and then test the rendered URL. That workflow catches both technical errors and the more damaging problem of perfectly valid markup describing the wrong thing.