wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

Investigate: schema.org breadcrumbs

Open omarreiss opened this issue 10 years ago • 12 comments

Currently our breadcrumbs refer to rdf.data-vocabulary.org.

Examples in Google documentation refer to schema.org. #3807 tries to address this by simply changing the reference in the xmlns:v namespace to schema.org

Before this can be merged, we should check if our breadcrumbs structure already complies with schema.org markup. If not, we should change the structure to properly reflect schema.org.

omarreiss avatar Feb 24 '16 13:02 omarreiss

Since this is quite a sensitive change, we need to thoroughly review and test any implementation, taking into account that dozens of themes are using our breadcrumbs when Yoast SEO is enabled. This can definitely not be merged before 3.3 is out the door.

omarreiss avatar May 18 '16 13:05 omarreiss

would love to see use of Schema.org and LD+Json script for breadcrumbs, cheers for taking it cautious though

wp-networks avatar Jun 02 '16 22:06 wp-networks

Please inform the customer of conversation # 174843 when this conversation has been closed.

Pcosta88 avatar Jan 23 '17 22:01 Pcosta88

Please inform the customer of conversation # 227423 when this conversation has been closed.

Pcosta88 avatar Sep 26 '17 22:09 Pcosta88

So, it's gonna be 2 years in Feb. When will you decide to fix this? 5 min job tops.

RetroGameTalk avatar Oct 10 '17 14:10 RetroGameTalk

After some research we found that we can use the schema vocubulary for our breadcrumbs instead of the current RDFa vocabulary we use now. We also want to do this using JSON-LD instead of RDFa for implementation.

Having said that, the current HTML markup needs to be preserved for the sake of backwards compatibility.

The JSON-LD markup will look like this:

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [{
    "@type": "ListItem",
    "position": 1,
    "item": {
      "@id": "https://yoast.com/",
      "name": "Home"
    }
  },{
    "@type": "ListItem",
    "position": 2,
    "item": {
      "@id": "https://yoast.com/seo-blog/",
      "name": "SEO Blog"
    }
  },{
    "@type": "ListItem",
    "position": 3,
    "item": {
      "name": "An alternative approach to Gutenberg"
    }
  }]
}
</script>

(URL used for above example: https://yoast.com/wordpress/plugins/local-seo/)

The image below shows the difference between our current breadcrumb and the new schema JSON-LD breadcrumb:

68747470733a2f2f7265766965772e796f6173742e636f6d2f75706c6f6164732f756e7469746c65645f2545322538302539345f5f5f446f63756d656e74735f31463837413244392e706e67

PatrickYoast avatar Oct 23 '17 13:10 PatrickYoast

related: https://github.com/Yoast/wordpress-seo/issues/3991

Pcosta88 avatar Dec 29 '17 21:12 Pcosta88

Related Comment: https://github.com/Yoast/wordpress-seo/issues/3991#issuecomment-279473144

Related link to consider changing Breadcrumbs to BreadcrumbsList: https://developers.google.com/search/docs/data-types/breadcrumb

Pcosta88 avatar Dec 29 '17 21:12 Pcosta88

Please inform the customer of conversation # 283358 when this conversation has been closed.

Pcosta88 avatar Dec 29 '17 21:12 Pcosta88

Reported #9007 here... i think this should be implemented asap, without destroying SERP with bad breadcrumbs format...

teolaz avatar May 09 '18 13:05 teolaz

#9705 tried to solve with this...

teolaz avatar May 14 '18 08:05 teolaz

Should be fixed with the PR from @teolaz. Therefore, I'm closing this.

benvaassen avatar Aug 03 '18 08:08 benvaassen