constant struggle
-
trying to get children and grandchildren to display within the same pages. I have bene trying to figure this out forever…
i have a main parent “DEPARTMENTS” with children
* Dental
* Human Services
* Medical
– Grandchildren
* health
* generalWhen i am in the grandchildren the children pages disappear. How can i keep the children and grandchildren on the same page?
the code i am working with:
<?php if($post->post_parent) $children = wp_list_pages("title_li=&depth=0&child_of=".$post->post_parent."&echo=0"); else $children = wp_list_pages("title_li=&depth=0&child_of=".$post->ID."&echo=0"); if ($children) { ?> <ul id="sec_nav"> <?php echo $children; ?> </ul> <?php } ?>thanks for any help.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
The topic ‘constant struggle’ is closed to new replies.