• Resolved aliqamarvpn

    (@aliqamarvpn)


    Hi – everything was fine a couple of days ago, but all of a sudden, my posts have a wrong structure for breadcrumbs.

    My breadcrumbs right now are like home > sub-category > parent category > post name

    However, it should be like home > parent category > sub-category > post name

    So, the problem is, my sub-category is showing before the parent category in the yoast breadcrumbs. I tested in Google snippet tool too and there also my sub-category is shown before the parent category to Google. Please help it is a serious issue.

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello,

    We are facing the same issue.

    Small observation: The breadcrumbs on old posts have the correct structure, however if you resave the post the structure changes. Home > sub-category > categories > current-post

    Version: 14.1

    Wordpress: 5.4.1

    • This reply was modified 4 years, 6 months ago by John Samuel.
    Thread Starter aliqamarvpn

    (@aliqamarvpn)

    For me, the breadcrumbs are all messed-up/swapped for old posts, too.

    I would like to elaborate on the issue a bit more so that everyone understands better. It was all good a couple of days ago, I upgraded to 14.1 and then after a couple of days, the parent and sub-category of posts got swapped.

    Perhaps it happened right after the most recent Yoast update but I just noticed yesterday. Please help ASAP, this is serious issues, now my breadcrumbs that are shown in Google are swapped too, make has made things look weird. Many thanks.

    Me too.

    My URL structure (for example) is;
    home/vending-machines/coffee-machines/floor-standing/floor-standing-bean-to-cup-coffee-vending-machine/

    The breadcrumbs are showing;
    HOME > FLOOR STANDING > COFFEE MACHINES > VENDING MACHINES > FLOOR STANDING BEAN TO CUP COFFEE VENDING MACHINE

    The subpages are completely reversed…

    Thread Starter aliqamarvpn

    (@aliqamarvpn)

    Hi guys – so the issue is real, I confirmed with Yoast team over github. The Yoast 14.2 coming next Tuesday will have it fixed. But I didn’t want to leave my site like this till then, so I finally got my hands on a fix for the meanwhile the team releases the latest version.

    The fix is changing this query:

    wordpress-seo/src/repositories/indexable-hierarchy-repository.php

    (Lines 76 to 80)

    public function find_ancestors( Indexable $indexable ) {
    $ancestors = $this->query()
    ->where( ‘indexable_id’, $indexable->id )
    ->order_by_desc( ‘depth’ )
    ->find_many();

    To use order_by_asc instead of order_by_desc.

    It worked for me, hope it helps you as well. And if you wish to thanks me, you can share my website article with your friends and family ??

    Cheers!

    Thanks ??

    Super, thanks!

    Plugin Support Maybellyne

    (@maybellyne)

    Hello @aliqamarvpn @johnsamuel @badscooter1980

    We are sorry about the problems with your breadcrumbs.

    The breadcrumbs in a wrong order is a bug. Our developers are aware of it and a fix is expected to be included in v14.2 of Yoast SEO. We are not sure when that release will be ready, only that a fix is expected to be a part of it.

    Many thanks.

    Hi @aliqamarvpn ,
    your fix works for me, but i had to resave some pages in order to fix the breadcrumbs structure.

    Thank you

    Plugin Support devnihil

    (@devnihil)

    @fusisdm Thanks for confirming the workaround that @aliqamarvpn correct the issue for you.

    Thread Starter aliqamarvpn

    (@aliqamarvpn)

    You’re very welcome guys, happy that I could help a bit. It is my rule to always help people online whether it’s helping them through articles on my blog or on forums. And, it should be the rule of life for us all I believe ?? Cheers!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Breadcrumbs showing wrongly’ is closed to new replies.