Thanks for the code. I put it in the functions.
// breadcrumb trail created by Jon Ruttan, based on breadcrumb menu by Chris Poole(chrispoole.com)
function the_breadcrumb() {
$url = $_SERVER["REQUEST_URI"];
$urlArray = array_slice(explode("/",$url), 0, -1);
// Set $dir to the first value
$dir = array_shift($urlArray);
echo '<a href="/">Home</a>';
foreach($urlArray as $text) {
$dir .= "/$text";
echo ' > <a href="'.$dir.'">' . ucwords(strtr($text, array('_' => ' ', '-' => ' '))) . '</a>';
}
}
And in theme
<?php the_breadcrumb(); ?>
Works great!!!
Thanks.