Always show parent pages
-
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 3Now when I click on one of the sub pags, this is how it shows up
– Sub 1
– Sub 2
– Sub 3What 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 } ?>`
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Always show parent pages’ is closed to new replies.