Title: Breadcrumbs showing wrongly
Last modified: May 19, 2020

---

# Breadcrumbs showing wrongly

 *  Resolved [aliqamarvpn](https://wordpress.org/support/users/aliqamarvpn/)
 * (@aliqamarvpn)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/breadcrumbs-showing-wrongly/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbreadcrumbs-showing-wrongly%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [John Samuel](https://wordpress.org/support/users/johnsamuel/)
 * (@johnsamuel)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/breadcrumbs-showing-wrongly/#post-12862183)
 * 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](https://wordpress.org/support/users/johnsamuel/).
 *  Thread Starter [aliqamarvpn](https://wordpress.org/support/users/aliqamarvpn/)
 * (@aliqamarvpn)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/breadcrumbs-showing-wrongly/#post-12862254)
 * 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.
 *  [badscooter1980](https://wordpress.org/support/users/badscooter1980/)
 * (@badscooter1980)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/breadcrumbs-showing-wrongly/#post-12863928)
 * 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](https://wordpress.org/support/users/aliqamarvpn/)
 * (@aliqamarvpn)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/breadcrumbs-showing-wrongly/#post-12864012)
 * 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!
 *  [John Samuel](https://wordpress.org/support/users/johnsamuel/)
 * (@johnsamuel)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/breadcrumbs-showing-wrongly/#post-12864023)
 * Thanks 😊
 *  [badscooter1980](https://wordpress.org/support/users/badscooter1980/)
 * (@badscooter1980)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/breadcrumbs-showing-wrongly/#post-12864060)
 * Super, thanks!
 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/breadcrumbs-showing-wrongly/#post-12864309)
 * Hello [@aliqamarvpn](https://wordpress.org/support/users/aliqamarvpn/) [@johnsamuel](https://wordpress.org/support/users/johnsamuel/)
   [@badscooter1980](https://wordpress.org/support/users/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.
 *  [fusisdm](https://wordpress.org/support/users/fusisdm/)
 * (@fusisdm)
 * [6 years ago](https://wordpress.org/support/topic/breadcrumbs-showing-wrongly/#post-12874457)
 * Hi [@aliqamarvpn](https://wordpress.org/support/users/aliqamarvpn/) ,
    your fix
   works for me, but i had to resave some pages in order to fix the breadcrumbs 
   structure.
 * Thank you
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [6 years ago](https://wordpress.org/support/topic/breadcrumbs-showing-wrongly/#post-12877445)
 * [@fusisdm](https://wordpress.org/support/users/fusisdm/) Thanks for confirming
   the workaround that [@aliqamarvpn](https://wordpress.org/support/users/aliqamarvpn/)
   correct the issue for you.
 *  Thread Starter [aliqamarvpn](https://wordpress.org/support/users/aliqamarvpn/)
 * (@aliqamarvpn)
 * [6 years ago](https://wordpress.org/support/topic/breadcrumbs-showing-wrongly/#post-12877580)
 * 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.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [Yoast Breadcrumbs](https://wordpress.org/support/topic-tag/yoast-breadcrumbs/)

 * 10 replies
 * 6 participants
 * Last reply from: [aliqamarvpn](https://wordpress.org/support/users/aliqamarvpn/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/breadcrumbs-showing-wrongly/#post-12877580)
 * Status: resolved