-
-
Save netwizards/ccb8bbe7003a38556718cf06895995bb to your computer and use it in GitHub Desktop.
Remove an item from Breadcrumbs NavXT plugin trail (Wordpress)
This file contains hidden or 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('bcn_display')) { | |
| function theme_remove_news_from_trail_on_404($trail) { | |
| if ( is_404() ) { | |
| unset($trail->trail[1]); | |
| array_keys($trail->trail); | |
| } | |
| } | |
| add_action('bcn_after_fill', 'theme_remove_news_from_trail_on_404'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment