Make WordPress Core

Opened 15 years ago

Closed 11 years ago

Last modified 11 years ago

#10902 closed defect (bug) (invalid)

Display problem with exclude option in wp_list_pages

Reported by: toutantic's profile 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

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 (6)

#1 @nacin
15 years ago

  • Milestone changed from Unassigned to Future Release

#2 @hakre
14 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?

Related: #17015

Last edited 14 years ago by hakre (previous) (diff)

#3 @iseulde
11 years ago

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

No feedback in over two years.

#4 @helen
11 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
11 years ago

  • Description modified (diff)

#6 @SergeyBiryukov
11 years ago

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