Recently, a user asked why events were not showing up correctly in his breadcrumbs.

The Answer

Unless your breadcrumb code is checking for custom taxonomies, it’s not going to know what to do with events and venues. Most breadcrumb plugins use a mix of conditionals to determine what to show, and often custom taxonomies don’t make it into the mix. So, let’s fix that!

The Code

Here’s a code snippet you can drop in your functions.php file that uses the built-in conditionals to handle events and venues.

You can use it verbatim just add tribe_breadcrumbs(); to your page template.

Or if you use a theme framework, just add an action hook wherever you want the breadcrumbs to appear: add_action(‘hook_name’,’tribe_breadcrumbs’);