I'm trying to markup my breadcrumbs according to Schema.org in order to get breadcrumbs in the Google results like this:
Home > Category > Current page
But with my current markup it only shows:
Home > Category
Is something missing in my markup (example page)? I'm using Navxt plugin for WordPress.
<div class="breadcrumbs" typeof="BreadcrumbList" vocab="http://schema.org/">
<!-- Breadcrumb NavXT 5.4.0 -->
<span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Go to Omdömen.se." href="http://www.xn--omdmen-yxa.se" class="home"><span property="name">Hem</span></a><meta property="position" content="1"></span> » <span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Go to Företag." href="http://www.xn--omdmen-yxa.se/foretag/" class="post post-page"><span property="name">Företag</span></a><meta property="position" content="2"></span> » <span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Go to Consector." href="http://www.xn--omdmen-yxa.se/foretag/consector/" class="post post-page current-item"><span property="name">Consector</span></a><meta property="position" content="3"></span></div>
You can google this to see my breadcrumb in Google Search: site:omdömen.se inurl:consector
Google’s documentation says about breadcrumbs:
The breadcrumb trail may include or omit a breadcrumb for the page on which it appears.
The documentation doesn’t contain a screenshot of their search result feature, but my guess is that Google Search displays it the same way in both cases: without an entry for the current page.
It wouldn’t make much sense to show the link for the current page in the search result snippet’s breadcrumb trail, because the primary link (i.e., the search result itself), well, already links to it.
According to the comments in this question's answers, apparently if you don't put an itemid
onyour last item (current page), it will now be displayed. :)
Similarly, you could remove the first item's (home page's) itemid or url to prevent a redundant display like "www.example.com > Home > My page".
来源:https://stackoverflow.com/questions/36120148/display-of-last-schema-org-breadcrumb-entry-in-google-search