WordPress.org

Support

Support » How-To and Troubleshooting » List pages and subpages with include

List pages and subpages with include

  • 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?

  • The topic ‘List pages and subpages with include’ is closed to new replies.