Return to Snippet

Revision: 23375
at February 5, 2010 04:13 by gd6d


Initial Code
function the_breadcrumb() {
	if (!is_home()) {
		echo '<a href="';
		echo get_option('home');
		echo '">';
		bloginfo('name');
		echo "</a> » ";
		if (is_category() || is_single()) {
			the_category('title_li=');
			if (is_single()) {
				echo " » ";
				the_title();
			}
		} elseif (is_page()) {
			echo the_title();
		}
	}
}



<?php the_breadcrumb(); ?>

Initial URL
http://www.catswhocode.com/blog/how-to-breadcrumb-function-for-wordpress

Initial Description

                                

Initial Title
How to: Breadcrumb function for Wordpress

Initial Tags
wordpress

Initial Language
PHP