Support » Plugin: Breadcrumb NavXT » Wrong custom taxonomy name in breadcrumbs NavXT

  • volodika

    (@volodika)


    On site is using custom taxonomy ‘Units’. One post has several units. One of them is primary. E.g. for post ‘Delta-n viert 20-jarig jubileum’ primary unit is ‘Delta-N’ http://prntscr.com/odn08c But instead is used first from the list ‘Cloud solutions’. In this case breadcrumbs is wrong and displaying as ‘Nieuws > Cloud solutions > Delta-n viert 20-jarig jubileum’
    Someone can help me ?

    The page I need help with: [log in to see the link]

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

    (@mtekk)

    This is the expected behavior of Breadcrumb NavXT. Primary terms in a taxonomy are not a construct that is present within WordPress code, so this isn’t something the core of Breadcrumb NavXT will pick up on without additional code. An older method of dealing with this was to change the order that the terms are returned to take advantage of how Breadcrumb NavXT selects a term. More recently, the bcn_pick_post_term filter was introduced and can be used to tell Breadcrumb NavXT what term to use within a taxonomy.

    Order Bender (see https://github.com/mtekk/Order-Bender/blob/master/order-bender.php) provides an interface for setting the primary term, re-orders the term output (to place the primary first), and uses the bcn_pick_post_term filter. You should be able to modify Order Bender to integrate with whatever solution you’re using to set a primary term (likely just need to change what post meta is used in the function hooking into bcn_pick_post_term).

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.