Title: Wrong Breadcrumbs categories
Last modified: August 30, 2016

---

# Wrong Breadcrumbs categories

 *  [asoggetti](https://wordpress.org/support/users/asoggetti/)
 * (@asoggetti)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/wrong-breadcrumbs-categories/)
 * Hi,
 * I’m experiencing a problem.
 * I set these categories in WP:
 * – Prodotti
 * — Alimentazione
    — — Gas — — Pellet — — Legna
 * — Convezione
    — — Convezione Acqua Calda — — Convezione Aria Calda — — Convezione
   Naturale
 * — Tipologia
    — — Accessori — — Camini — — Stufe
 * But i’ve got different results:
    1. [http://www.edilfire.it/prodotti/tipologia/camini/camino-pellet-convezione-naturale-02/](http://www.edilfire.it/prodotti/tipologia/camini/camino-pellet-convezione-naturale-02/)
   2. [http://www.edilfire.it/prodotti/tipologia/stufe/stufa-gas-convezione-acqua-calda-02/](http://www.edilfire.it/prodotti/tipologia/stufe/stufa-gas-convezione-acqua-calda-02/)
 * The first one is correct, the second is not: I think the problem is related to
   the alphabetical order of the categories since in this page the breadcrumbs structure
   changes and shows “Convezione” instead of “Stufe” (while the breadcrumbs structure
   should be the same as the permalink like in the first link).
 * Can someone tell me how to fix it?
 * [https://wordpress.org/plugins/breadcrumb-navxt/](https://wordpress.org/plugins/breadcrumb-navxt/)

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

 *  Plugin Author [John Havlik](https://wordpress.org/support/users/mtekk/)
 * (@mtekk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/wrong-breadcrumbs-categories/#post-6289958)
 * It’s not necessarily the alphabetical order; it’s the returned order by WordPress
   for the categories that the item is a member of (typically the order of creation,
   which may be alphabetical). This can be overridden using the [Order Bender](https://github.com/mtekk/Order-Bender)
   plugin, which provides a metabox that allows you to set the primary category 
   for a post (the one that Breadcrumb NavXT will follow).
 *  [muskmelon](https://wordpress.org/support/users/muskmelon/)
 * (@muskmelon)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wrong-breadcrumbs-categories/#post-6290096)
 * Hello
 * I have exactly the same problem. I installed Order Bender and yes I am able to
   set the primary category now, unfortunately Breadcrumb NavXT does not follow 
   it, it is still using the wrong category to show.
 *  [muskmelon](https://wordpress.org/support/users/muskmelon/)
 * (@muskmelon)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wrong-breadcrumbs-categories/#post-6290097)
 * I’m using latest version of everything
    Breadcrumb NavXT 5.3.1 Order Bender 0.6.0
   WordPress 4.4
 *  Plugin Author [John Havlik](https://wordpress.org/support/users/mtekk/)
 * (@mtekk)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/wrong-breadcrumbs-categories/#post-6290098)
 * When you set the primary category, was it a child of another category? If it 
   was not, that is likely the problem. Breadcrumb NavXT still follows it’s rules
   for category hierarchy selection, which are:
    1. Use the first term hierarchy that is found. That is, use the first term with
       a parent.
    2. If no term with a parent is in the list of terms, use the last term
 * Order Bender helps if and only if you have multiple category hierarchies. All
   Order Bender does is changes the order of terms returned by `get_the_terms()`,
   setting the category designated as the primary category as the first returned
   by `get_the_terms()`. If that category does not have a parent, Breadcrumb NavXT
   will still pass over it.
 * Full control over the term selection would require replacing/overriding `bcn_breadcrumb_trail::
   pick_post_term()`. Though, looking at this, it looks like a filter may need to
   be introduced there to ease the implementation of this.

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

The topic ‘Wrong Breadcrumbs categories’ is closed to new replies.

 * ![](https://ps.w.org/breadcrumb-navxt/assets/icon.svg?rev=1927103)
 * [Breadcrumb NavXT](https://wordpress.org/plugins/breadcrumb-navxt/)
 * [Support Threads](https://wordpress.org/support/plugin/breadcrumb-navxt/)
 * [Active Topics](https://wordpress.org/support/plugin/breadcrumb-navxt/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/breadcrumb-navxt/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/breadcrumb-navxt/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [John Havlik](https://wordpress.org/support/users/mtekk/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/wrong-breadcrumbs-categories/#post-6290098)
 * Status: not resolved