[wp-trac] [WordPress Trac] #5469: wp_list_pages() creates empty <ul> tags with depth=1 argument

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 15 09:28:54 GMT 2007


#5469: wp_list_pages() creates empty <ul> tags with depth=1 argument
----------------------+-----------------------------------------------------
 Reporter:  fitztrev  |       Owner:  anonymous
     Type:  defect    |      Status:  new      
 Priority:  normal    |   Milestone:  2.4      
Component:  General   |     Version:           
 Severity:  normal    |    Keywords:           
----------------------+-----------------------------------------------------
 When a page has a child page, and the user wants to display just the top
 level pages, this is the syntax to use:

 <?php wp_list_pages('depth=1'); ?>

 However, this creates pairs of "<ul></ul>"s where those children would
 normally be nested beneath the parents.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5469>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list