• Resolved coolicious

    (@coolicious)


    Hey guys,

    I need rly help. I use this plugin for years now and I watched that the plugin sometimes doesnt shows the category the set as primary in the backend.

    Then it looks like that:
    Movies > Hobbit > Top 6: Best adventure movies
    (The categories “Movies” and “Hobbit” are also checked in the backend but not as “primary”. The primary category is “Topliste”.)

    Instead of this:
    Topliste > Top 6: Best adventure movies

    I cant understand where the failure is? Please help me – this is very bad :/

    • This topic was modified 8 years, 4 months ago by coolicious.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author John Havlik

    (@mtekk)

    How are you setting the primary category (what plugin are you using to add that functionality)? This is not a concept that is part of WordPress core. Support for primary categories is available through the Breadcrumb NavXT Paths extension plugin. Note that Order Bender (another plugin) does this as well, but only works with the metabox that it adds for primary category selection.

    Thread Starter coolicious

    (@coolicious)

    Hey John,

    its the normal “primary”-function of WordPress – look: https://ibb.co/eZasJb

    I cant say something more than that. It should be fixed by the plugin itself or not?

    Yours sincerly

    Plugin Author John Havlik

    (@mtekk)

    Thanks for the screenshot. I’m pretty sure that is Yoast SEO, or some other plugin, adding the primary category setting. That is not something that WordPress without any other code/plugins will do. Support for primary categories added by Yoast SEO is available through the Breadcrumb NavXT Paths extension plugin.

    Thread Starter coolicious

    (@coolicious)

    Ok, thank you for the reply.

    Am I sure if I have two categories and no one is primary then Breadcrumb NavXT will select one of the two as the one which are display as breadcrumb automatically?

    And if I want to control this which category should display I have to purchase the plugin? :/

    Plugin Author John Havlik

    (@mtekk)

    When a post (of any post type) is a member of multiple terms from the taxonomy that is set as the hierarchy to follow (in the Breadcrumb NavXT settings) for that post type, Breadcrumb NavXT will pick the first term that has a parent (for hierarchical taxonomies). Otherwise, it will end up selecting the last term returned by get_the_terms().

    If you want to control which term Breadcrumb NavXT selects (modify the above behavior), there are several options. You can:

    • Use Breadcrumb NavXT Paths (premium)
    • Use Order Bender (free)
    • Write custom code that interacts with the bcn_pick_post_term filter
    Thread Starter coolicious

    (@coolicious)

    Thank you!

    With Order Bender it works :))

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

The topic ‘Plugin sometimes doesnt shows the “primary” category’ is closed to new replies.