Add sub pages to page list on menu bar? (3 posts)

  1. gavinwatson
    Posted 2 years ago #

    Hi all,

    I have tried to add a list of pages under the category menu bar which I have been able to do successfully, what I haven't been able to do is get it to display pages that are listed as 'child' under the main page.

    I have added to the 'depth' field, but this hasn't helped.

    How can I get the tab to display child pages under the main page listed?

    This is what I have:

    <div id="navcontainer">
    <ul id="nav">
    <li <?php wp_list_pages('title_li=&depth=3&sort_column=menu_order&include=3093,1089,988,67,2,38');?>

    The pages are the correct ones and the 3093 page 'should' list sub pages but I do not know how to tell the code to list pages under the 3093 page...

    I hope I have explained this correctly!

    Thanks in advance for any help.

  2. esander4
    Posted 2 years ago #

    This may not have been your question, but from what it sounds like all you have to do is in the custom menu screen, drag the child page to the right under the parent page until it snaps over as being indented.

  3. gavinwatson
    Posted 2 years ago #

    Hi, thanks for your very fast reply.

    If I go this route, I would need to create a menu (whic hI haven't yet).

    If I do that, how do I make my code reflect the menu that I have used?

    At the moment I am using the code to display the pages that I want, I would happily use a menu and create the correct structre from there as it would be esier.

    How do I specify in my header to display a specific menu that I have created?

    thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic