Hi Sadish,
I have taken this off as resolved just so I can ask another quick question. The sub-links for parent pages are working, however when you then click into a sub-page becasue the code is only looking to see if the “active” page has a parent – the navigation disappears. The best way to show this is for you to look at my blog.
http://www.macmillan-academy.org.uk/staff_blogs/mrking/?page_id=13
On this page I have created two sub-pages testing 123 and test. When the user clicks on testing123 I need the navigation for test to still be visible. The code I have used in my sidebar is below.
<?php
$sub_pages = wp_list_pages( 'sort_column=menu_order&depth=2&title_li=&echo=0&child_of=' . $id );
if ($sub_pages <> "" ) {?>
<div class="box-1">
<div class="box-h">
<h4><?php the_title(); ?></h4>
<ul><?php echo $sub_pages; ?></ul>
</div>
</div>
<?php }?>
Hope you can continue to help….