Created
November 21, 2013 07:24
-
-
Save InoPlugs/7577333 to your computer and use it in GitHub Desktop.
Tri.be Breadcrumb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!function_exists('avia_modify_event_breadcrumb')) | |
{ | |
function avia_modify_event_breadcrumb($trail) | |
{ | |
if(get_query_var('post_type') == 'tribe_events') | |
{ | |
$page = 2563; | |
$newtrail = avia_breadcrumbs_get_parents( $page, '' ); | |
array_unshift($newtrail, $trail[0]); | |
if(is_single()) $newtrail['trail_end'] = $trail['trail_end']; | |
$trail = $newtrail; | |
} | |
return $trail; | |
} | |
add_filter('avia_breadcrumbs_trail','avia_modify_event_breadcrumb'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment