From 0f9f08679d1efa0960d8a71206713f8942db4c33 Mon Sep 17 00:00:00 2001 From: adricorse Date: Tue, 16 Apr 2024 11:57:47 +0200 Subject: [PATCH] The key "type" must start with "@" --- docs/features/schema/integration-guidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/features/schema/integration-guidelines.md b/docs/features/schema/integration-guidelines.md index 429fd719..4fd02610 100644 --- a/docs/features/schema/integration-guidelines.md +++ b/docs/features/schema/integration-guidelines.md @@ -75,7 +75,7 @@ class Book { $post_id = YoastSEO()->meta->for_current_page()->post_id; // Set the type. - $data['type'] = 'Book'; + $data['@type'] = 'Book'; // Give it a unique ID, based on the URL and the Post ID. $data['@id'] = $canonical . '#/book/' . $post_id; @@ -183,4 +183,4 @@ In the example above, we used `isPartOf`. This is fine if your Schema "piece" is ```json "mainEntityOfPage": { "@id": "" } -``` \ No newline at end of file +```