• Hi,

    I have a problem with my navigation. I want to display all of my pages and theirs child pages. I want to display the child in a dropdown menu I got. In the code you can see how it works if I hardcode the meny. Now I want it to work with wp_list_pages(); so I dont haft to hardcode in for every page.

    I want to display my pages like this, in my wordpress site

    <div id="navigationContainer">
    <ul id="navigation">
    
    <li class="navLi">
    <a href="" title="" class="navA">Start</a>
    </li>
    
    <li class="navLi dropdown">
    <a href="" title="" class="navA">Page</a>
    <ul>
    <li><a href="" title="">Child</li>
    </ul>
    </li>
    
    <li class="navLi dropdown">
    <a href="" title="" class="navA">Parent</a>
    <ul>
    <li><a href="" title="">Child</a></li>
    <li><a href="" title="">Child</a></li>
    <li><a href="" title="">Child</a></li>
    <li><a href="" title="">Child</a></li>
    </ul>
    </li>
    
    <li class="navLi">
    <a href="" title="" class="navA">Page</a>
    </li>
    
    </ul>
    </div>

    Thanks for now.

    // Erik

  • The topic ‘How to display my pages in navigation.’ is closed to new replies.