
Dec 01, 2026 by Anthony York (YorkSoft Ltd)
Last Updated: 30 November 2026
Quick Summary
Schema markup for dynamic website content must be generated from the same source as the page itself, because the price, stock and reviews change whenever the database does. Use a JSON-LD template with placeholders, map each property to a named database field, and omit any empty value rather than sending a blank one.
Schema markup for dynamic website content is different from marking up a static page. A static page has fixed details that you can type in once. A dynamic page pulls its title, price, stock level and reviews from a database, so the markup has to change every time the content does.
Search engines read structured data to understand what a page is about (Intro to How Structured Data Markup Works | Google Search Central | Documentation). If that data is wrong or out of date, the page may lose eligibility for rich results. Keeping the schema markup for dynamic website content tied to the live data avoids that problem.
Here is the short version:
Schema markup is code that describes the meaning of a page in a format search engines can read. The vocabulary comes from Schema.org, a shared set of types and properties maintained by the major search engines. Google's own guidance on Google's introduction to structured data markup explains how the markup helps it understand content.
Schema is usually written in one of three formats:
Structured data does not change the words a visitor sees. It gives search engines a clearer picture of entities on the page, such as a product, a business or an article. When that picture is accurate, the page can be eligible for rich results, which are enhanced listings with extra details like ratings or prices. Eligibility is never guaranteed, and it depends on the page meeting the search engine's guidelines.
A template is a fixed piece of JSON-LD with placeholders. Your CMS fills those placeholders with values from each record. The result is unique, accurate markup for every page, produced by the same code.
The basic process looks like this:
Keeping the data flowing between your database and your site is the hard part. Our guide on how to optimise business data flow with API integration shows how to connect the tools that feed this kind of template, so the values stay in step.
Every schema property needs a source. Map each one to a named field so there is no guesswork later.
| Schema property | Database field | Notes |
|---|---|---|
| name | product_title | Must match the visible heading |
| price | unit_price | Include currency as GBP |
| availability | stock_status | Use the Schema.org availability URL |
| description | short_description | Plain text, no HTML |
If a field is empty, leave the property out rather than sending a blank value. Blank values create errors in testing tools.
Product pages are the most common place to use schema for dynamic content, because the price and stock change often. A product template typically includes the name, image, description, offer and, where you collect them, ratings.

Here is a simplified example for a product in pounds sterling:
{ "@context": "https://schema.org", "@type": "Product", "name": "{{product_title}}", "description": "{{short_description}}", "offers": { "@type": "Offer", "price": "{{unit_price}}", "priceCurrency": "GBP", "availability": "{{availability_url}}" } } The braces mark the placeholders your CMS fills in. Only add a review or rating block if the reviews are real and visible on the page, as the search engine guidelines require.
Testing a single page is simple. Testing thousands of generated pages needs a repeatable process.
Start with the official tools. Google's Rich Results Test checks whether a page is eligible for rich results. Search Console's enhancement reports then show errors across the whole site over time.
For larger sites, a practical approach is:
Testing only confirms the markup at one moment. Set a regular check so that a broken template does not go unnoticed for months.
Good dynamic schema follows a few simple rules:
A common mistake is copying a schema block from one page and reusing it across many, with only the name changed. That produces markup that no longer matches the content, which search engines can treat as misleading. Generating each block from the data avoids this.
If you want a wider view of how structured data supports visibility in AI answers, our page on how to structure content for AI citations covers the same principles in more depth.
Generator tools are useful for a handful of static pages. You fill in a form, copy the output and paste it into the page. This works well for a small site with few changes.
Dynamic sites usually outgrow that approach. Once the content lives in a database, the schema should be generated by code, so each record produces its own markup automatically. Building your own template is worth the effort when:
Off-the-shelf plugins can cover common cases, but they may not map to your custom database fields. A bespoke template gives you control over which fields feed which properties.
Getting dynamic schema right takes a clear template, a tested data mapping and a regular check. YorkSoft Ltd can build these as part of custom web development and web app projects in Northampton and across the United Kingdom. If you want the structured data on your site to match your live content, contact YorkSoft Ltd to talk through your setup.
Schema markup for dynamic website content is structured data that is generated from your database or content management system rather than typed by hand for each page. Instead of one fixed block of JSON-LD, a template pulls fields such as product name, price, availability, author and published date into the markup each time a page is built. This keeps the structured data accurate when content changes, which matters because stale markup can describe items that are no longer on sale or no longer exist.
Start by listing the page types on your site, such as products, articles or events, and the schema type that suits each one. Then write a JSON-LD template with placeholders that map to your database fields. Insert the template into the page layout so it renders with the real values at request or build time. Finally, check the rendered output in a browser, not just the source template, so you can confirm the values have filled in correctly.
Yes. Most content management systems and e-commerce platforms can output JSON-LD automatically from stored fields, and custom builds can do the same with a server-side template. The key is that every field used in the markup is reliable at source. If your product database holds inconsistent prices or missing availability values, automatic generation will simply publish those errors faster, so clean the source data before automating.
Test a representative sample of generated URLs with Google's Rich Results Test and the schema validator, and check that the rendered HTML contains the expected JSON-LD. Monitor the enhancements reports in Search Console to catch errors that appear after launch. Because dynamic pages can number in the thousands, sample across page types and edge cases, such as products with no reviews or items with very long names, rather than trying to test every URL by hand.