‘folding’ navigation list problem – custom code
-
I have some custom PHP written to show, in a sidebar, the navigation for the site.
<?php if(is_404() or is_search()) : ?> <!--put here what you want to show on your 404 and searchresults pages instead of the childpages--> <?php else : ?> <?php if($post->post_parent) // If this is a Child page $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); else $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0"); // This is a Parent page if ($children) { ?> <ul class="subnav"> <li><h2 class="menu-image"><small><em>more choices</em></small><br /><?php echo($parent_title = get_the_title($post->post_parent)); ?></h2></li> <?php include("recent-news-edu.php"); ?> <?php echo $children; ?> </ul> <?php } ?> <?php endif; ?>
The test site is located at:
https://gator956.hostgator.com/~dwzemens/worship/mass-times/Here’s the client’s question that I cannot solve:
Is it possible to reconfigure the way the sidebar menus show up, so that the entire section appears (like the entire WORSHIP section) whenever a visitor is in ANY part of the worship pages? For example, if I go to WORSHIP I see a full index of WORSHIP, then I click on SACRAMENTS and see a full index of WORSHIP, then I click on BAPTISM, and I’d like to still see that full index, but I only get the SACRAMENT index.Can anyone offer any help for me by a modification to this code or by suggesting some other method?
Thanks so very much for the help.
- The topic ‘‘folding’ navigation list problem – custom code’ is closed to new replies.