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 6 years, 1 month ago by
John Samuel.
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…
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!
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
@fusisdm Thanks for confirming the workaround that @aliqamarvpn correct the issue for you.
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!