Call Chris at (615) 521-1890 for a free quote.
615.521.1890
Nashville Interactive - Home

Blog

Single Level Breadcrumb for WordPress

Nov 15 2011

<div class=’breadcrumb’><h1><?php
// if there is a parent, display the link
if ( $post->post_parent ) {
$parent_title = get_the_title($post->post_parent);
if ( $parent_title != the_title(‘ ‘, ‘ ‘, false) ) {
echo ‘<a href=’ . get_permalink($post->post_parent)
. ‘ ‘ . ‘title=’ . $parent_title . ‘>’ . $parent_title
. ‘</a> &raquo; ‘;
}
}
?>
<?php the_title(); ?>
</h1></div>