custom breadcrumb
function kcparent_breadcrumb()
{
$sep = ' > ';
if (!is_front_page()) {
echo '<a href="';
echo get_option('home');
echo '">';
bloginfo('name');
echo '</a>' . $sep;
if (is_category() || is_single()) {
the_category('title_li=');
} elseif (is_archive() || is_single()) {
if (is_day()) {
printf(__('%s', 'themeplate'), get_the_date());
} elseif (is_month()) {
printf(__('%s', 'themeplate'), get_the_date(_x('F Y', 'monthly archives date format', 'themeplate')));
} elseif (is_year()) {
printf(__('%s', 'themeplate'), get_the_date(_x('Y', 'yearly archives date format', 'themeplate')));
} else {
_e('Blog Archives', 'themeplate');
}
}
if (is_single()) {
echo $sep;
the_title();
}
if (is_page()) {
echo the_title();
}
if (is_search()) {
echo the_title();
}
}
}