Make WordPress Core

Opened 9 years ago

Closed 5 years ago

Last modified 5 years ago

#10902 closed defect (bug) (invalid)

Display problem with exclude option in wp_list_pages

Reported by: toutantic Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8.4
Component: Template Keywords: reporter-feedback
Focuses: Cc:

Description (last modified by SergeyBiryukov)

Create pages A,B,C and D, A parent of B, B of C and C of 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 (6)

#1 @nacin
8 years ago

  • Milestone changed from Unassigned to Future Release

#2 @hakre
7 years ago

  • 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?

Releated: #17015

Version 0, edited 7 years ago by hakre (next)

#3 @iseulde
5 years ago

  • Resolution set to invalid
  • Status changed from new to closed

No feedback in over two years.

#4 @helen
5 years ago

  • Milestone Future Release deleted

I'm not really understanding the expectation. Feel free to reopen if it's still a problem.

#5 @SergeyBiryukov
5 years ago

  • Description modified (diff)

#6 @SergeyBiryukov
5 years ago

  • Component changed from General to Template
Note: See TracTickets for help on using tickets.