First, look at what the page itself is about, then decide which type of
structured data to use. If a product page uses Article
and an article page uses Product, even perfectly written code is unlikely to produce the corresponding search result presentation. Choosing a type is not about picking one that looks right from a list; it means identifying the page’s primary content entity and checking whether the page actually contains the fields to support that type.
Choose the type before writing the code
Most websites only need to know a few common types. Article pages correspond to Article, content with questions and answers can use FAQPage, product pages correspond to Product, event pages to Event, and pages with hierarchical navigation can also use BreadcrumbList. A page can contain multiple types, but each type must be supported by its own content; simply writing the type name is not enough.
There are two common signs that the wrong type has been selected. In one case, validation tools report no errors, but search results never change because the type does not match the page content. In the other, the page’s purpose has changed, but the structured data still uses the old type. For example, an event has ended and the page has been changed to a general introduction, but the Event start time and location fields are still there. Search engines may treat this information as an unreliable signal.
Article pages: Focus on the title, publication date, author, and body. Without a publication date, it is difficult to assess the timeliness of time-sensitive content.
Product pages: Focus on the name, image, price, and availability. If the price has no currency unit or is provided only as a range, a price comparison display cannot be generated.
FAQ pages: The questions and answers must be visible on the page. If they appear only in the code and there is no corresponding text on the page, search engines have no answer they can verify.
Within the same
website, category pages and detail pages also use different types. A category page is a collection of multiple pieces of content; forcing it into a detail-page type can make the page topic too narrow. First, group pages by content entity, then define a fixed template for each page type. New pages can then use the relevant template, reducing the likelihood of mismatches.
More fields are not always better
Required fields determine whether the structured data can be understood; recommended fields determine how rich the display can be. Get the required fields right first, then add recommended fields. Fields such as name, image, and url may seem simple, but they are especially easy to get wrong: the name may use an internal abbreviation, the image may be a thumbnail URL, or the link may use a relative path, requiring search engines to convert it before they can use it.
Dates and prices are two other common sources of misinterpretation. Provide the full date for the publication date. Do not set the modification date to the same date as the publication date just to fill in the field; if the content has changed, use the actual modification date. A price must include both a number and a currency. List the promotional price and original price separately; putting them in one field makes the price range impossible to determine. Availability must also match the page’s buttons. If the page says an item is sold out while the code says it is in stock, this inconsistency directly undermines trust.
The image field also needs to be checked against the page. Ideally, the image in the structured data should be the page’s main image. Images that are too small, distorted in aspect ratio, or served from a URL with hotlink-protection parameters may not be used. Do not add image URLs for images that do not appear on the page.

JSON-LD is the more reliable approach
JSON-LD is now the standard approach. It can be placed in the page’s head or at the end of the body; the key is to keep its placement consistent and ensure the format is complete. Each code block should represent one content entity. If multiple types are needed, use separate code blocks or organize them together with @graph. Putting multiple types in a single object can make it unclear which fields belong to which type, and changing one part may affect another.
Pay particular attention to template variables on dynamic pages. Fields such as titles, prices, and times come from a database. A missing quotation mark in the template, an empty variable, or an unescaped special character can invalidate the entire JSON block. Before publishing, check the actual source code output in a test environment; do not just review the backend template.
For example, if a document page is titled “An Exploration of Financial Management for Hospital Infrastructure Projects in the Context of the New Accounting System” [blocked], and the title makes it look like an article, use Article and include the title, date, and author. Do not add an unrelated product type just because the document is long. Validation is meaningful only when the type matches the page’s content entity.
Validate in two steps
First, use the
Rich Results Test to check whether the code can be parsed and whether it corresponds to the expected display format. It can detect syntax errors, missing fields, and type mismatches, but it only represents that specific URL. Second, use a structured data validation tool to check the syntax and structure, then review the overall status of the same page type in Search Console for warnings or errors affecting multiple pages.
Passing validation does not mean that rich results will appear immediately. Search engines need to recrawl the page and confirm that its content matches the code before deciding whether to display rich results. Repeatedly changing the code just after launch may prolong this evaluation process. After making changes, first confirm the crawl status, then wait and monitor the results. Do not treat test tool results as the final display outcome.
Key errors to check after making changes
Syntax errors usually involve punctuation: one extra comma, a missing quotation mark, or an unclosed bracket can cause the entire code block to be ignored. Field errors are often caused by an incorrect data type, such as putting text in a field that requires a number or using an abbreviated date instead of the date shown on the page. Duplicate errors can result from a template outputting the same content more than once. If a page contains two code blocks with the same content but inconsistent fields, search engines may not know which one to trust.
There is another type of issue that may not be flagged directly in testing: the code is correct, but the corresponding content is missing from the page. If questions and answers, prices, or reviews appear only in the code, search engines will not display them if they cannot verify them after crawling. Structured data is a machine-readable description of the page content, not a separate piece of copy written just for search engines. Keeping the page and code consistent is more important than adding more fields.