• Hi,

    I’m building a navigation structure whereby I really want to feature a number of subpages in a section in the sidebar menu.

    I have been trying to use
    wp_list_pages('include=4,8,9&title_li=&sort_column=menu_order');
    the problem I am having is that pages 4,8,9 are all subpages and I cannot get anything to display unless I include a parent ID in the sequence (which is merely a joining page).

    Am I missing something or is this a bug?

    Dave

Viewing 2 replies - 1 through 2 (of 2 total)
  • umm, i’m having the same problem. i can list top pages (no parents) but not their children.
    While i was writing this, i thought “what if… if add the parent to the include list?” well, i was right and it works, but it’s no use because i don’t want it to be visible everytime i list the children

    Ex:
    parent1
    child1 child2 child3
    parent1
    child4 child5 child6

    instead of

    child1 child2 child3
    child4 child5 child6

    ?? and thats a menu…

    I wonder if this would work:
    https://www.ads-software.com/support/topic/126321?replies=6#post-592145

    Both that post and the one following it suggest a way to write your own call to the database to list pages.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_list_pages include child display problem’ is closed to new replies.