WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 8 months ago

Last modified 8 months 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

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)

comment:1 nacin4 years ago

  • Milestone changed from Unassigned to Future Release

comment:2 hakre3 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 3 years ago by hakre (previous) (diff)

comment:3 avryl8 months ago

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

No feedback in over two years.

comment:4 helen8 months ago

  • Milestone Future Release deleted

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

comment:5 SergeyBiryukov8 months ago

  • Description modified (diff)

comment:6 SergeyBiryukov8 months ago

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