List pages and subpages with include (1 post)

  1. astromono
    Posted 5 years ago #

    Hi there guys, I'm trying to make a navigation menu using wp_list_pages() using the "include" parameter like this:

    <?php wp_list_pages("sort_column=menu_order&title_li=&include=8,16,18,77,47,49&child_of="); ?>

    The problem with the code is that it will only display the pages noted there and not the childs or grandchilds of those respective pages. How would I go about doing that if I'm already using the "child_of" parameter?

Topic Closed

This topic has been closed to new replies.

About this Topic