• Here is the problem, I yet to find a workable solution for this:

    I have a navigation bar in the header of my page that show only the top level links (depth=1) which works fine.

    How can I exclude level 1 pages from the sidebar navigation? On my subpages (Level 2, 3 etc) I would llike to list all child pages for a given top level item (Level 1) in a nested unorderd list. So if I’m on level 3, I still want all the pages ranging from level 2 and down.

    This is a very basic feature on most web sites. How can I do this?

Viewing 1 replies (of 1 total)
  • If I understand right, you have:

    – Page — (ID = X)
    — Sub Page A
    — Sub Page B
    — Sub Page C

    and you want this in sidebar:

    — Sub Page A
    — Sub Page B
    — Sub Page C

    Then add in sidebar <?php wp_list_pages('child_of=X' ); ?>
    Where X = ID of level 1 Page.

Viewing 1 replies (of 1 total)
  • The topic ‘Listing pages in sidebar, excluding top level pages’ is closed to new replies.