wp_list_pages: enable "include" to display subpages

  1. Janzomaster


    When using the "include" parameter in the Template Tag wp_list_pages, there is no way to get it to display the subpages of the included pages as well.
    Giving users the option to display the subpages of the included pages would be great.

    Posted: 10 years ago #
  2. Justin Shreve

    wp_list_pages includes a depth attribute which will show subpages


    (integer) This parameter controls how many levels in the hierarchy of pages are to be included in the list generated by wp_list_pages. The default value is 0 (display all pages, including all sub-pages).
    0 - Pages and sub-pages displayed in hierarchical (indented) form (Default).
    -1 - Pages in sub-pages displayed in flat (no indent) form.
    1 - Show only top level Pages
    2 - Value of 2 (or greater) specifies the depth (or level) to descend in displaying Pages.
    Posted: 8 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    1 Vote
  • Status

    This idea has been implemented