Support » Plugin: Yoast SEO » Breadcrumb rdf fails google structured data testing

  • Resolved jonathanmoorebcsorg

    (@jonathanmoorebcsorg)


    Google structured data testing tool https://search.google.com/structured-data/testing-tool
    reports error on line 2 of this Yoast breadcrumb structure:

    <span xmlns:v="http://rdf.data-vocabulary.org/#">
    <span rel="v:child" typeof="v:Breadcrumb">
    <a href="/category/stories/" rel="v:url" property="v:title">Stories</a> »
    <span rel="v:child" typeof="v:Breadcrumb"><a href="/category/stories/people/" rel="v:url" property="v:title">People</a> »
    <strong class="breadcrumb_last">A Person</strong>
    </span>
    </span>
    </span>

    This could be fixed by removing the first rel="v:child" : since the first breadcrumb has no parent it is not allowed to be tagged as a child. If this is removed, the structured data testing tool proceeds to validate the breadcrumbs successfully.

    How should I report this, eg on Github?
    At least, the pinned post on this forum advises to check Github issues and raise there but I can’t see issues on this project.

    https://wordpress.org/plugins/wordpress-seo/

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have just noticed this same issue.

    https://search.google.com/structured-data/testing-tool#url=https%3A%2F%2Fwww.microstockman.com%2Fstock-photos%2Fskull-in-desert%2F

    As an example.

    This was testing perfectly a few months back, now the breadcrumb fails the test.

    Yoast team – any thoughts?

    Plugin Support amboutwe

    (@amboutwe)

    A request is currently open for this issue. If you would like to follow the progress of the request, you can do that here: https://github.com/Yoast/wordpress-seo/issues/3992

    Actually I was going to say I don’t get this issue any more, rel=”v:child” is no longer output on the first breadcrumb, so @thpstock should post a separate issue with his own results.

    So ok, 3 different issues here:

    1. My issue which was simply that the first breadcrumb was incorrectly marked as a child (which is fixed).
    2. The GitHub issue is about converting from RDF metadata to Schema.org metadata.
    3. @thpstock issue is that he has a breadcrumb with missing url and title, this is different

    @thpstock, I think your issue is being misreported by Google, if you test your actual breadcrumb output as a code snippet in the Google Structured Data Testing Tool, it passes with no problem at all, so maybe something else in the output has confused the tool.

    the actual breadcrumb output is fine:
    <div class='container'><p id="breadcrumbs"> You are here: <span xmlns:v="http://rdf.data-vocabulary.org/#"><span typeof="v:Breadcrumb"><a href="https://www.microstockman.com/" rel="v:url" property="v:title">Home</a> > <span rel="v:child" typeof="v:Breadcrumb"><a href="https://www.microstockman.com/stock-photos/" rel="v:url" property="v:title">Stock Photos</a> > <span rel="v:child" typeof="v:Breadcrumb"><a href="https://www.microstockman.com/photo-category/natural-world/" rel="v:url" property="v:title">Natural World</a> > <span class="breadcrumb_last">Skull in Desert</span></span></span></span></span></p></div>

    Hmm, WordPress just ate my previous reply:

    – original issue about first breadcrumb being labelled as a child is fixed.
    – github issue is different, it is about converting to different schema
    @thpstock issue is google reporting blank url and title on breadcrumb. This is a bogus report because if you paste the breadcrumb code as a code snippet, the Google Structured Data Testing Tool validates it fine.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Breadcrumb rdf fails google structured data testing’ is closed to new replies.