maintainer
Member
Posted 10 months ago #
Hello mtekk and Breadcrumb NavXT users,
Is there a way to not display the current item in a trail?
For example in Home > Category > SubCategory > Post Title
I want to get rid of (or hide) "> Post Title"
I've been going through the options and searching online, but I'm not coming up with anything. Weird thing is I think I've done it before.
Thanks
http://wordpress.org/extend/plugins/breadcrumb-navxt/
Never has been an option, and is not planned to be one either. Removing the current item violates several rules for locational breadcrumb trails (should always display the full path). In most cases the perceived need to remove the current item is stemmed by poor spatial separation between the page title and the breadcrumb trail.
That said, there are ways of removing the current item, the smartest way is to hook into the 'bcn_after_fill' action, and remove the first entry (at index 0) in the passed in argument's trail array.
maintainer
Member
Posted 10 months ago #
Ah, indeed! I am suffering from poor spatial separation… I didn't realize there's best-practices regarding trails.
I'll reconsider my site to see if I can incorporate standard breadcrumbs before I hack out the current item.
Thanks for the info, it's very useful!
(Also, thanks for the wonderful plugin!)