Schema.org structured data is the difference between an ordinary Google result and a rich snippet with stars, images and breadcrumbs. In 2026, with the rise of AI search engines (see our GEO/AEO guide), structured data is not just an SEO bonus: it is the language in which AI understands your content.
This guide goes from the basics to advanced implementation. Practical examples for WordPress, Craft and Laravel, plus tools for validation and monitoring.
What structured data is: no fog #
Structured data is additional metadata on a page that tells search engines what the content represents. Without it, Google sees 'text that mentions cooking, time, ingredients'. With it, Google knows 'this is a recipe, here is the cooking time, here are the servings, here is the rating'.
Three syntaxes:
- JSON-LD: recommended by Google. A JavaScript object in
<script type="application/ld+json">. The easiest to implement and maintain. - Microdata: attributes inside HTML elements. An older approach, still works but less preferred.
- RDFa: the most flexible but the hardest to implement. Rarely used for the web.
We go with JSON-LD because it covers 99% of cases.
The most important schema types for 2026 #
1. Article / BlogPosting / NewsArticle #
For any content article. It lets Google know who the author is, when it was published, which category, the cover image.
2. Product #
For e-commerce products. Price, availability, rating. It appears in rich snippets with the price and stars.
3. FAQPage #
For FAQ sections. Google has not shown this rich result since 7 May 2026.
4. BreadcrumbList #
The navigation path. On desktop it appears in Google above the title instead of the URL. On mobile Google shows only the domain.
5. LocalBusiness #
For local businesses. It lets Google know the address, phone and opening hours. It appears in Maps and local search.
6. Organization #
Top-level brand info. Logo, contact, social profiles. It gives Google the knowledge for the Knowledge Graph.
7. Event #
For events, concerts, webinars. Date, location, ticket info.
8. Recipe #
For recipes. The best-known rich result: images, time, calories, rating.
9. VideoObject #
For video content. Thumbnail, duration, transcript.
A practical example: Article schema #
The minimum JSON-LD for a blog post:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "Schema.org structured data 2026",
"datePublished": "2026-07-05T09:00:00+02:00",
"dateModified": "2026-07-05T09:00:00+02:00",
"author": {
"@type": "Organization",
"name": "WMD HOSTING",
"url": "https://wmd.hr"
},
"publisher": {
"@type": "Organization",
"name": "WMD HOSTING",
"logo": {
"@type": "ImageObject",
"url": "https://wmd.hr/doc/slike/wmd-logo.png"
}
},
"image": "https://wmd.hr/doc/vijesti/schema-org-hero.png",
"description": "A practical guide to Schema.org structured data from scratch to rich results."
}
</script>
This goes in the <head> or before the </body> of the page.
FAQ schema: a markup with no display in Google #
Since 7 May 2026 Google does not show FAQ rich results, and it removed the documentation for them on 15 June 2026. You can leave FAQPage as markup, but it does not change how results look in Google.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "Do I need Schema.org for SEO?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. Structured data enables rich snippets and a better understanding of the content by AI search engines."
}
},
{
"@type": "Question",
"name": "What is the easiest way to implement it?",
"acceptedAnswer": {
"@type": "Answer",
"text": "For WordPress, Yoast or Rank Math generate Schema automatically. For custom sites, JSON-LD in the head of the page."
}
}
]
}
</script>
WordPress implementation: the easiest #
Yoast SEO (free + premium) #
Generates automatically: Article, Organization, WebSite, WebPage, BreadcrumbList. Premium adds: the FAQ block, the HowTo block, Local Business.
Rank Math (free + pro) #
Richer schema support even in the free version: Article, Product, Recipe, FAQ, HowTo, Local Business, Job Posting, Video.
Schema & Structured Data for WP & AMP (plugin) #
The largest library of schema types. Good if you need non-standard ones (Course, Event, Review, etc).
Custom (functions.php) #
For non-standard schema, use the wp_head action hook:
add_action('wp_head', function() {
if (is_single()) {
$schema = [
'@context' => 'https://schema.org',
'@type' => 'Article',
'headline' => get_the_title(),
'datePublished' => get_the_date('c'),
// ... rest
];
echo '<script type="application/ld+json">' . json_encode($schema) . '</script>';
}
});
Craft CMS implementation #
The most popular plugin: SEOmatic (nystudio107).
In the Craft admin: SEOmatic → Globals → Site → JSON-LD. You set the Organization schema once for the whole site. For individual entry types, go to SEOmatic → Content → [Section] → JSON-LD.
Custom Twig for non-standard schema in a template:
{% set schema = {
'@context': 'https://schema.org',
'@type': 'Article',
'headline': entry.title,
'datePublished': entry.postDate | date('c'),
'author': {
'@type': 'Organization',
'name': 'WMD HOSTING'
}
} %}
<script type="application/ld+json">{{ schema | json_encode | raw }}</script>
Laravel implementation #
The package: spatie/schema-org.
composer require spatie/schema-org
In a Blade template:
use Spatie\SchemaOrg\Schema;
$article = Schema::article()
->headline($post->title)
->datePublished($post->published_at)
->author(Schema::organization()->name('WMD HOSTING'))
->image($post->image_url);
echo $article->toScript();
Validation: do not skip it #
Three tools you must know:
1. Rich Results Test #
search.google.com/test/rich-results
Google's own tool. It shows you whether your schema will generate a rich result, and which. Run it after every change.
2. Schema.org Validator #
Generic validation (not Google-specific only). Useful for details that are not Google-relevant but are proper schema.
3. Google Search Console #
Under Enhancements in GSC you see the actual results from field data: which URLs have problems, which generate rich results.
The most common mistakes #
1. The schema does not match the content on the page #
The schema says 'Recipe', but the page is about shoes. Google calls that 'spam' and may penalise it.
2. Hidden content in the schema #
An FAQ that is not visible to the user but exists in the schema. Against Google's guidelines.
3. The main type does not match the page topic #
Several items on one page are allowed, nested or as separate blocks linked with @id. The main type must match the main topic of the page.
4. Old, non-existent schema #
Schema.org is updated. Follow the changelog.
5. JSON syntax errors #
One forgotten comma or a wrong bracket and it all goes in the bin. The validator helps.
What is new in 2026 #
AI-aware structured data #
AI search engines (ChatGPT, Perplexity, Claude) increasingly value structured data. Schema is becoming critical for GEO/AEO, not just classic SEO.
llms.txt synergy #
llms.txt + Schema.org give AI systems both: a clear content structure (schema) and meta-information about the site (llms.txt).
Digital Product Passport in Schema.org #
Version 30.1 (September 2026) brings a vocabulary for the EU Digital Product Passport: the class DigitalProductPassport and the property hasDigitalProductPassport on the Product and Offer types.
Best practice checklist #
- Every entry/post → Article or a more specific schema
- Every category/listing page → BreadcrumbList
- FAQ sections → FAQPage, but with no display in Google
- Product pages → Product
- Site-wide: Organization + WebSite
- A local business → LocalBusiness (with address, phone, opening hours)
- Validation after every change
- Monitoring the GSC Enhancements report
- Update when Google issues a new schema type
FAQ #
Will Schema guarantee rich results? #
No. Schema gives you a chance. Google decides for each page. But without Schema, you are guaranteed not to get rich results.
Do I need all the schema types? #
No. Implement what fits the content. Recipe schema on a hosting site makes no sense.
What if my schema generates a warning in the validator? #
Warnings are not critical. Errors are, so fix those. Warnings are 'nice to have' fields that you do not have to fill in.
How does schema affect page speed? #
Almost not at all. JSON-LD is a few KB. Async loading does not matter because crawling does not depend on render speed.
What about multi-language sites? #
Hreflang in the HTML + a separate schema set for each language version. Article schema can have an inLanguage property.
Conclusion #
Schema.org is fundamental, not optional in 2026. For classic SEO it gives you rich results. For GEO it gives AI systems a clear structure.
A practical plan if you are starting from scratch:
- Identify the 3-5 most important schema types for your site
- Implement through a plugin (WP) or a template helper (Craft / Laravel)
- Validate through the Rich Results Test
- Monitor through GSC Enhancements
- Gradually expand to more schema types
For help with a specific site, get in touch with your combination of CMS + content.