• Hey guys,

    I’m optimizing a website built by another firm and they used this plugin all wrong. So lets say i have a blog article like this: example.com/main-category/sub-category/post-name. What happens in google is that it’s always the /news/ category being showed as the only category, so a live example: i have an article example.com/tips/car-stickers/how-to-apply-stickers-correctly-to-car but google displays example.com/news/ as the snippet.

    I haven’t worked with this plugin before and considering this is a high traffic website, i need to do it right at once. Hope someone can help me in the right direction.

    The on-page breadcrumbs however are correctly displayed.

    The post template in settings show this:

    <span typeof="v:Breadcrumb"><a rel="v:url" title="Ga naar %title%." href="%link%">%htitle%</a></span>
    Post template (not linked) shows this:
    <span><span>%htitle%</span></span>

    The display post Hierarchy is checked.

    Post Hierarchy Use Parent First and Post Hierarchy Referer Influence are not checked.

    For post Hierarchy the option categories is checked.

    Thanks in advance!

    • This topic was modified 5 years, 3 months ago by aristotle25.
    • This topic was modified 5 years, 3 months ago by Jan Dembowski. Reason: Formatting
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author John Havlik

    (@mtekk)

    The first thing I will comment on is, based on the post breadcrumb template provided, it looks like the template are using the old breadcrumbs microformat instead of schema.org’s BreadcrumbList format (which is the format I recommend).

    For the example article, what is the breadcrumb trail generated by Breadcrumb NavXT? If you are getting example.come/news/ in Google’s SERPs and or Structured Data Testing Tool, I’d assume the breadcrumb trail only has “news” as a parent category for the post (but I could be wrong, hence the need for more information as to what you are seeing Breadcrumb NavXT generate).

    Thread Starter aristotle25

    (@aristotle25)

    Hey John,

    I was updating this for a second site. Can you join me in taking a look.
    – i’ve corrected the navxt backend settings to go with the new markup (per your defaults)
    – i’ve updated the templates:
    Old:

    <div class="breadcrumbs">
        <?php if(function_exists('bcn_display')) { bcn_display(); }?>
    </div>

    New:

    <div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">
        <?php if(function_exists('bcn_display')) { bcn_display(); }?>
    </div>

    My portfolio’s had a custom line added (single.php):

    complete old:
    <span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" title="Go to ." href="<?php echo home_url();?>" class="home">Home</a></span><span class="divider">/</span><span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" title="Go to the Projecten category archives." href="<?php echo home_url('/portfolio/');?>" class="taxonomy category">Projecten</a></span><span class="divider">/</span><span><span><?php the_title();?></span></span>

    complete new:
    <span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Naar de startpagina." href="<?php echo home_url();?>" class="home"><span property="name">Home</span></a><meta property="position" content="%position%"><span class="divider">/</span><span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Naar het Projecten overzicht." href="<?php echo home_url('/portfolio/');?>" class="taxonomy category"><span property="name">Projecten</span></a><meta property="position" content="%position%"><span class="divider">/</span><span><span><?php the_title();?></span></span>

    But right now im a bit confused on why there errors persist (this is a project / default post-type):
    https://search.google.com/structured-data/testing-tool/u/0/?hl=nl#url=https%3A%2F%2Fwww.procarwrap.nl%2Fmercedes-g63-brabus-bodykit-and-full-body-wrap%2F

    URL; https://www.procarwrap.nl/mercedes-g63-brabus-bodykit-and-full-body-wrap/

    This is a service page (page.php) using the default bcn code:
    https://search.google.com/structured-data/testing-tool/?hl=nl#url=%20https%3A%2F%2Fwww.procarwrap.nl%2Fons-aanbod-procarwrap%2Fruiten-blinderen%2F

    URL; https://www.procarwrap.nl/ons-aanbod-procarwrap/ruiten-blinderen/

    So would be nice if you could pinpoint the following:
    – Why <span property=”name”></span> comes up empty?
    – Why is says “Google does not recognize the itemListElement property for a ListItem type object.” on the post-type template:
    https://www.procarwrap.nl/mercedes-g63-brabus-bodykit-and-full-body-wrap/

    Thanks!

    Plugin Author John Havlik

    (@mtekk)

    One thing that looks odd is you are nesting your breadcrumbs in the HTML which isn’t the way the markup should look for Schema.org BreadcrumbList. Also, if you’re hand coding a trail, you need to make sure to replace %position% with the appropriate position of the breadcrumb within the trail.

    Thread Starter aristotle25

    (@aristotle25)

    Okay thanks,

    What about the pages. These use your default settings. Yet the current page isn’t listed in the breadcrumblist. Any idea why?
    https://search.google.com/structured-data/testing-tool/u/0/?hl=nl#url=https%3A%2F%2Fwww.procarwrap.nl%2Fons-aanbod-procarwrap%2Fruiten-blinderen%2F

    Plugin Author John Havlik

    (@mtekk)

    If your current item is not linked, it will not show up in the BreadcrumbList. Schema.org BreadcrumbList is only applicable if there is link. If you try to add the Schema.org markup without the link, Google’s tool will complain. Hence, in the default settings, Breadcrumb NavXT does not include Schema.org markup for unlinked breadcrumbs.

    • This reply was modified 5 years, 1 month ago by John Havlik.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Correct setting for displaying url structure in google serp’ is closed to new replies.