Opened 4 years ago

Last modified 2 years ago

#10902 new defect (bug)

Display problem with exclude option in wp_list_pages

Reported by: toutantic Owned by:
Priority: normal Milestone: Future Release
Component: General Version: 2.8.4
Severity: normal Keywords: reporter-feedback
Cc:

Description

Create pages A,B,C and D, A parent of B, B of C and C of D
A
-B
--C
---D

call in a template
<?php wp_list_pages("exclude=6"); ?>
(6 is the ID of page B)

I get this display :

  • A
  • C
  • D

when I expect :

  • A
  • C

-* D

Change History (2)

  • Milestone changed from Unassigned to Future Release
  • Keywords reporter-feedback added; wp_list_pages removed

Do you expect exclude to remove the pages specified, or the pages specified and their children?

If the first, how should child-pages that have their parent excluded be displayed? Beneath their next matching parent?

Related: #17015

Last edited 2 years ago by hakre (previous) (diff)
Note: See TracTickets for help on using tickets.