Support » Themes and Templates » Sub menu with child page

  • Hello,

    i’m a french user of wordpress, so forgive me my poor english in advance please.
    I would like to have the same system like this blog :
    When we select a mother page, it child pages are showed. I would like do the same on - But i don’t understand how do this…

    I tryed this :

    <div id="nav">
    <ul id="navlist">
    <li<?php if(is_home()) echo ' class="current_page_item"' ?>><a href="<?php bloginfo('url'); ?>/">Accueil</a></li>
      <?php// wp_list_pages('sort_column=menu_order&title_li='); ?>
    if (is_home())
    if ( $post->post_parent != 0) {
    } else {

    The problem is that the parent pages don’t present on the home or all pages, and i would like to have all parent pages, and child page in submenu when we choose one of the mother page.

    How do this please?

    Thanks a lot 🙂

  • The topic ‘Sub menu with child page’ is closed to new replies.