diff --git a/docs/features/schema/integration-guidelines.md b/docs/features/schema/integration-guidelines.md index 429fd719..999c9c85 100644 --- a/docs/features/schema/integration-guidelines.md +++ b/docs/features/schema/integration-guidelines.md @@ -72,10 +72,10 @@ class Book { public function generate() { $canonical = YoastSEO()->meta->for_current_page()->canonical; - $post_id = YoastSEO()->meta->for_current_page()->post_id; + $post_id = YoastSEO()->meta->for_current_page()->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 +```