• Wasn’t sure how to word the subject, so sorry if it seems sketchy. I’m having a problem with my navigation. My navigation goes something like:

    • Home
    • About
    • Services
    • A Service
    • Service number two
    • Contact
    • When I go to the services page (which has a child page) the subnav shows up. When I go to that child page, the subnav goes away. I want to be able to show the ‘sister’ pages when viewing a child page of a parent… if that makes any sense.

      The website is justjoeyproductions.com (see the services page)

Viewing 1 replies (of 1 total)
  • Thread Starter jowe

    (@jowe)

    Gah sorry for double posting… didn’t know you could not edit posts.

    Here’s the php:

    <div id="navigation">
    <ul>
    <!-- <li><a href="<?php bloginfo('home'); ?>">Home</a></li> -->
    <?php wp_list_pages('sort_column=menu_order&title_li=&depth=1'); ?></ul>
    </div>
    
    <?php if(is_page() && wp_list_pages("child_of=".$post->ID."&echo=0")) { ?>
    <div id="childnavigation">
    <ul>
    <?php wp_list_pages("title_li=&child_of=".$post->ID."&sort_column=menu_order");?>
    </ul>
    </div>

    (I have removed the home page code because I am using a static home page)

Viewing 1 replies (of 1 total)
  • The topic ‘Show subnav of ‘sister’ pages’ is closed to new replies.