Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Havlik

    (@mtekk)

    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 plugin, which provides a metabox that allows you to set the primary category for a post (the one that Breadcrumb NavXT will follow).

    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.

    I’m using latest version of everything
    Breadcrumb NavXT 5.3.1
    Order Bender 0.6.0
    WordPress 4.4

    Plugin Author John Havlik

    (@mtekk)

    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.