WordPress.org

Make WordPress Core

Opened 5 years ago

Last modified 3 months ago

#9232 new enhancement

introduce include_tree parameter to wp_list_pages

Reported by: dwenaus Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 2.7.1
Component: Posts, Post Types Keywords: include, wp_list_pages, include_tree
Focuses: template Cc:

Description

to match the excellent exclude_tree parameter, it would be invaluable to have the ability to list one page and have all it's children display as well. At present, there is no way to do this.

We should add a include_tree parameter to the wp_list_pages function.

This addition would be helpful while creating drop down menus and side bar menus for sub sections of large websites.

Change History (3)

comment:1 janeforshort5 years ago

  • Milestone changed from 2.8 to Future Release

Punting due to feature freeze. Reconsider with next release.

comment:2 eduplessis4 years ago

  • Cc eduplessis added
  • Keywords include_tree added

we need this ... and I don't have to explain why...every wordpress dev know how it's complicated to make a menu with a dropdown.

comment:3 nacin3 months ago

  • Component changed from Template to Posts, Post Types
  • Focuses template added
Note: See TracTickets for help on using tickets.