I have a blog page that uses breadcrumbs. Currently they only go 3 levels deep, here is the bit of code:
<?php
if($post->post_parent){
$new_parent = get_post($post->post_parent);
if($new_parent->post_parent){
echo '<a href="'.get_permalink($new_parent->post_parent).'">'.get_the_title($new_parent->post_parent).'</a> <span class="raquo">» </span>';
}
echo '<a href="'.get_permalink($post->post_parent).'">'.get_the_title($post->post_parent).'</a> <span class="raquo">»</span>';
}
?>
<?php wp_title(''); ?>
The problem is that is specifically what the parents are of the pages, I want the parents relative to the menu I currently have. I have searched google and so far no good. Anyone have any ideas?