BuddyDev

BuddyPress and Breadcrumb Trail Plugin Compatibility – Updated

If you are using newer version of BuddyPress(2.6.0 or newer), My old code for adding breadcrumb for BuddyPress components won’t work. It is due to the change in the way BuddyPress Nav items are handled now.

A few years ago, I created a better solution for our Community Builder theme and the Breadcrumb Trail plugin. Here is a slightly modified version of that code. It will work with BuddyPress 2.6.0+

All we are doing is extracting the details for BuddyPress and adding to the trail items.

It is also available as a gist here

https://gist.github.com/sbrajesh/3e1fe81377e9209d694a188e18c1043f

Have fun!

Leave a Reply

Are you looking for support?

Please ask support questions in BuddyDev Forum and help us serve you better. Please use comment for general discussion/feature suggestions.

Your email address will not be published. All the fields marked as * are required.

If you are posting code, please use <pre> { Your Code Block } </pre>. Example:- <pre> echo $name; </pre>

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">


Subscribe