Ive been trying to figure this thing out but to no avail. Here's my situation.
Parent Link
Parent Link 2
- Sub 1
- Sub 2
- Sub 3
Now when I click on one of the sub pags, this is how it shows up
- Sub 1
- Sub 2
- Sub 3
What I want to do is essentially still have the first view show up regardless if I clicked on the subpages. Any help would is appreciated.
Also heres the code I used
<?php
if($post->post_parent)
$children = wp_list_pages("depth=2&sort_column=menu_order&title_li=&child_of=".$post->post_parent."&echo=1");
else
$children = wp_list_pages("depth=2&sort_column=menu_order&title_li=&child_of=".$post->ID."&echo=1");
if ($children) { ?>
<?php echo $children; ?>
<?php } ?>`