• Is there a way to limit the depth of the breadcrumb trail on the single post page to just be Home and the Parent Category

    So for example Home * Projects * SubCategory * Single Post Name

    Can I limit it to Home * Projects for single Post pages?

    Or can it have it turn off the Subcategory Link – so it displays but they can’t click on it to go to that subcategory?

    https://ww.wp.xz.cn/plugins/breadcrumb-navxt/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m wondering the same thing. We want it to limit to just the home page and the parent page of the page or post you are on. So, no matter what, it only goes to a depth of 2 items.

    Plugin Author John Havlik

    (@mtekk)

    @brightenyourview:
    For what you’re after, you can probably implement it by using this plugin to remove the current item: https://github.com/mtekk/Breadcrumb-NavXT-Extensions/blob/master/breadcrumb_navxt_remove_curitm.php (possibly modify to only remove the current item when you want to). As for the subcategory, that sounds like you’re trying to have a hidden category, which you should consider using a custom taxonomy for instead. However, you can write a hook into the bcn_pick_post_term filter to specify the taxonomy term to use for each post (overrides Breadcrumb NavXT’s default decision on the matter, requires Breadcrumb NavXT 5.4 or newer).

    @isign4jc
    For what you want to do, you can write a hook into the bcn_after_fill action and remove all but the last two breadcrumbs from the passed in bcn_breadcrumb_trail object’s breadcrumbs member array.

    Now that has been said, you should consider the design and usability implications of what you want to do. From what I can tell, you will end up with a breadcrumb trail that offers little to no utility to the user. Ideally, the breadcrumb trail is a secondary or tertiary form of navigation that contains the full logical path to a resource. Hiding items from the trail violates this principle and should be done with great caution.

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

The topic ‘Limit Breadcrumb Trail on Single Posts’ is closed to new replies.