Bende emin değilim..
En kötü şu fonksiyonu function.php ye atıp, döngü içinde herhangi bir sayfada kullanabilirsin.
function get_breadcrumb() {
//$home = bloginfo('url');
$output = '<ul id="breadcrumbs"><li><a href="'.home_url().'" title="Ana Sayfa">Ana Sayfa</a> » </li>';
$post_ancestors = get_post_ancestors($post);
if ($post_ancestors) {
$post_ancestors = array_reverse($post_ancestors);
foreach ($post_ancestors as $crumb)
$output .= '<li><a href="'.get_permalink($crumb).'">'.get_the_title($crumb).'</a> » </li>';
}
if (is_category() || is_single()) {
$category = get_the_category();
$output .= '<li><a href="'.get_category_link($category[0]->cat_ID).'">'.$category[0]->cat_name.'</a> » </li>';
}
if (!is_category() && get_query_var('name')!="")
$output .= '<li class="current"><a href="'.get_permalink().'">'.get_the_title().'</a></li>';
$output .= '</ul><br class="clearer" />';
echo $output;
}
Deniyeceğim hocamda, Daha ufak bir kod vardır ya eminim. Bu kadar uzun işe gerek yok diye düşünüyorum ama yinede çok saol hocam.