Make WordPress Core

Opened 6 years ago

Closed 2 years ago

Last modified 2 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)

comment:1 @nacin6 years ago

  • Milestone changed from Unassigned to Future Release

comment:2 @hakre5 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 5 years ago by hakre (previous) (diff)

comment:3 @iseulde2 years ago

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

No feedback in over two years.

comment:4 @helen2 years ago

  • Milestone Future Release deleted

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

comment:5 @SergeyBiryukov2 years ago

  • Description modified (diff)

comment:6 @SergeyBiryukov2 years ago

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