Make WordPress Core

Opened 13 years ago

Last modified 2 years ago

#9232 new enhancement

introduce include_tree parameter to wp_list_pages

Reported by: dwenaus Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.7.1
Component: Posts, Post Types Keywords: needs-patch
Focuses: template Cc:


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 (5)

#1 @janeforshort
12 years ago

  • Milestone changed from 2.8 to Future Release

Punting due to feature freeze. Reconsider with next release.

#2 @eduplessis
11 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.

#3 @nacin
8 years ago

  • Component changed from Template to Posts, Post Types
  • Focuses template added

#4 @wonderboymusic
6 years ago

  • Keywords needs-patch added; include wp_list_pages include_tree removed
  • Milestone changed from Future Release to 4.4

#5 @wonderboymusic
6 years ago

  • Milestone changed from 4.4 to Future Release

I don't have a patch and this is more confusing than it looks

Note: See TracTickets for help on using tickets.