[wp-trac] [WordPress Trac] #8342: Support depth argument to get_pages.

WordPress Trac noreply at wordpress.org
Tue Oct 30 19:26:21 UTC 2012


#8342: Support depth argument to get_pages.
-------------------------+-----------------------------
 Reporter:  mellis       |       Owner:  anonymous
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Template     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+-----------------------------
Changes (by Japh):

 * cc: japh@… (added)


Comment:

 What is the use-case for having a depth argument on `get_pages` instead of
 just using `wp_list_pages` instead?

   Essentially `get_pages` gives you an array of the pages, and that array
 '''''is not tree-like. See the `wp_list_pages()` Template Tag for the
 output of page titles in a tree-like fashion.'''''

 (Emphasis added)

 Perhaps this can be marked as 'wontfix'?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/8342#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list