Simple breadcrumbs

Simple Breadcrumbs For WordPress. Add breadcrumb navigation links to your wordpress posts and pages in under five minutes. Add the first snippet of code to your wordpress functions.php. Then add the second block of code to your theme in the place you wish to display your breadcrumbs.




function the_breadcrumb() {
echo 'You are here: ';
if (!is_front_page()) {
echo '<a href="';
echo get_option('home');
echo '">Home';
echo "</a> » ";
if (is_category() || is_single()) {
the_category(' ');
if (is_single()) {
echo " » ";
} elseif (is_page()) {
echo the_title();
else {
echo 'Home';



Leave a comment