Last day I wrote about the SEO Friendly Breadcrumb Format, I have implemented those formats in my WordPress site. And here is the code which is written for WordPress.
Add this PHP code at the end of functions.php file from the theme folder
<?php
if ( ! function_exists( 'breadcrumbs' ) ) :
function breadcrumbs() {
$delimiter = '›';
$home = 'Home';
echo '<div xmlns:v="http://rdf.data-vocabulary.org/#" class="breadcrumb">';
global $post;
echo ' <span typeof="v:Breadcrumb">
<a rel="v:url" property="v:title" href="'.get_bloginfo('url').'">'.$home.'</a>
</span> ';
$cats = get_the_category();
if ($cats) {
foreach($cats as $cat) {
echo $delimiter . "<span typeof=\"v:Breadcrumb\">
<a rel=\"v:url\" property=\"v:title\" href=\"".get_category_link($cat->term_id)."\" >$cat->name</a>
</span>";
}
}
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
echo $delimiter . "<span typeof=\"v:Breadcrumb\">
<a rel=\"v:url\" property=\"v:title\" href=\"".get_tag_link($tag->term_id)."\" >$tag->name</a>
</span>";
}
}
echo '</div>';
}
endif;
?>
The above code will generate the breadcrumb from the post categories and post tags values of the current post. The parent category will be show at the first then its child, and finally add if any tag presents.
Add the following function call in your single.php file.
<?php breadcrumbs(); ?>
Place this code above the the_title() function or below the_content() function calls.
Add the following CSS in you Style.css
/* BreadCrumbs CSS*/
.breadcrumb {
font-size: 11px;
}
.breadcrumb a {
color: gray;
text-decoration: none;
}
.breadcrumb a:hover {
color: #178A00;
}
So now your WordPress blog’s breadcrumb is Search Engine Optimized. You can see the results from your next post onward. Its so simple
Also See : SEO Friendly Breadcrumb Format

Thank’s for Breadcrumb for WordPress! I will use it in my site.
Amazing. I have been trying hard to write a similar functions. Thank you for saving me from re-inventing the wheel
Thanks, its awesome look on my site. its work
i’ve trying to create the function myself but found error on my page then i found this on your site, n its work.
i have used it , and its success..
thanks for your tutorials.
Techiehandy
at the end, i found this website,, that give me a full tutorials to get breadcrumb in google,
thanks dude for sharing..
Techiehandy | android tips
hi, i have try it, and its give me a good in search engine..
look at my site:
Sony VAIO F-Series VPCF233FX/B Review Specification
nice seo friendly tutorials, i have install breadcrumb in my blog here:
Asus Eee Pad Transformer Prime Specification Review
Pingback: Membuat SEO Friendly Blog : Google Rich Snippets Breadcrumb Wordpress | Majuterus
How if I’ve breadcrumbs on my theme? Should I use again?
and I am using Thesis, so I placed it into thesis function instead of wordpress function or not?
Just replace the thesis breadcrumbs function call with breadcrumbs(); and use the place the function definition anywhere in the function.php file.
Thanks a lot for your answer. It solved my problem
Need help : I was try it on my blog but why show error below :
Warning: Cannot modify header information – headers already sent by (output started at /home/fajarram/public_html/wp-content/themes/Maya/compositio/functions.php:168) in /home/fajarram/public_html/wp-includes/pluggable.php on line 866
what was the content on function.php line 168? could you just post that line here?
The content on function.php line 168 is the code i inserted from this articel
I used ribbons theme for my blog, and include breadcrumb functions.
Pingback: SEO Rich Snippets Breadcrumb Tanpa Plugin | Alang Fauzi Bertuah
thanks for sharing information, I will practice on my blog, hopefully I can put breadcrumm on my blog