Opened 19 years ago
Closed 19 years ago
#5469 closed defect (bug) (fixed)
wp_list_pages() creates empty <ul> tags with depth=1 argument
| Reported by: | fitztrev | Owned by: | hailin |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
patch file