Breadcrumbs Plugin is a plugin that displays a breadcrumb menu on your site.
breadcrumbs-plus.zip
folder.breadcrumbs-plus
folder to your /wp-content/plugins
directory.This plugin work automatically with Genesis, Hybrid, Nifty, Thematic and Thesis. In other theme won't work automatically. So, you'll have to add it manually in your template files. Where? Well, that's really up to you. You can add it anywhere you want.
This is the basic code:
<?php breadcrumbs_plus(); ?>
By default, this plugin is designed to show things a certain way. Here are the defaults:
$defaults = array(
'prefix' => '<p>',
'suffix' => '</p>',
'title' => __( 'You are here: ', 'breadcrumbs-plus' ),
'home' => __( 'Home', 'breadcrumbs-plus' ),
'sep' => '»',
'front_page' => false,
'bold' => true,
'show_blog' => true,
'echo' => true,
'singular_post_taxonomy' => 'category',
);
false
if no home link is needed'singular_post_taxonomy' => 'category'
How about we change the separator between each item?
<?php breadcrumbs_plus( array( 'sep' => '→' ) ); ?>
This time, we'll wrap the entire menu in brackets.
<?php breadcrumbs_plus( array( 'prefix' => '{', 'suffix' => '}' ) ); ?>
Now, let's add categories for singular posts.
<?php breadcrumbs_plus( array( 'singular_post_taxonomy' => 'category' ) ); ?>
Sometimes, we stop using plugins, but we forget to remove the function calls to the plugins in our theme files. When deactivated, this causes errors. To protect yourself from these errors, you can call the breadcrumbs plus like this:
<?php if ( function_exists( 'breadcrumbs_plus' ) ) { breadcrumbs_plus(); } ?>
Basically, this just checks to see if the plugin is activated and has loaded the appropriate function.
Breadcrumbs Plus comes with some extra classes to work with, so you can have a bit of freedom when styling your menu. Here are the CSS classes for your use:
.breadcrumb {
}
.breadcrumbs-plus {
}
.breadcrumbs-separator {
}
Breadcrumbs Plus is licensed under the GNU General Public License, version 2 (GPL).
2010 – 2011 © Luis Alberto Ochoa Esparza. All rights reserved.