wp_list_pages() don't respect depth (subpage issue)
|Reported by:||LadyAnna||Owned by:||anonymous|
|Severity:||normal||Keywords:||pages, subpages, wp_list_pages()|
On my blog, I tried making the theme handle the pages as don't show subpages in list (they are listed on the parent page). I used the parameter depth=1, as instructed in the codex, still my subpages are shown.
I tried to use the default wp_list_page() with no parameters, and basically the only visual difference was that the title (Pages) was unformatted, the actual list of pages looked the same. The default use of the tag, according to codex, should be that subpages get indented one step from its parent. This does not happen (not for the default theme either so I'm pretty sure it's not a theme thing).
For some reason it seems that subpages are treated exactly as a mainpage when listing.