Opened 17 years ago
Closed 17 years ago
#5469 closed defect (bug) (fixed)
wp_list_pages() creates empty <ul> tags with depth=1 argument
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
patch file