Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #17015


Ignore:
Timestamp:
08/17/2013 12:55:43 PM (13 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17015

    • Property Status changed from new to closed
    • Property Component changed from General to Template
    • Property Version changed from 3.1 to 1.5
    • Property Resolution changed from to invalid
  • Ticket #17015 – Description

    initial v3  
    11I am using wp_list_pages to create a page hierarchy. I only want the grandchildren of specific pages, so I generate a list of page IDs to send to wp_list_pages. I sort them by page title.  The hierarchy is not handled correctly when a grandchild's title sorts before its parent.
    22
    3 How it should come out:[[BR]]
    4 About Us[[BR]]
    5  -Board of Directors[[BR]]
    6    --Annual Reports[[BR]]
    7  -FAQ[[BR]]
    8  -Initiatives[[BR]]
    9   --Ohio...[[BR]]
    10   --Reach[[BR]]
    11 
    12 How it comes out:[[BR]]
    13 About Us[[BR]]
    14  -Annual Reports[[BR]]
    15  -Board of Directors[[BR]]
    16  -FAQ[[BR]]
    17  -Initiatives[[BR]]
    18   --Ohio...[[BR]]
    19   --Reach[[BR]]
    20 
    21 I've moved things around and verified that this sorts correctly:[[BR]]
    22 About Us[[BR]]
    23  -Board of Directors[[BR]]
    24    --ZZZAnnual Reports[[BR]]
    25  -FAQ[[BR]]
    26  -Initiatives[[BR]]
    27   --Ohio...[[BR]]
    28   --Reach[[BR]]
    29 
    30 If one grandchild has a sort order above its parent, all the grandchildren are pulled above the parent in the hierarchy. For example:[[BR]]
    31 About Us[[BR]]
    32  -Board of Directors[[BR]]
    33    --ZZZAnnual Reports[[BR]]
    34  -FAQ[[BR]]
    35  -AAAAOhio...[[BR]]
    36  -Reach[[BR]]
    37  -Initiatives[[BR]]
     3How it should come out:
     4{{{
     5About Us
     6 -Board of Directors
     7   --Annual Reports
     8 -FAQ
     9 -Initiatives
     10  --Ohio...
     11  --Reach
     12}}}
     13How it comes out:
     14{{{
     15About Us
     16 -Annual Reports
     17 -Board of Directors
     18 -FAQ
     19 -Initiatives
     20  --Ohio...
     21  --Reach
     22}}}
     23I've moved things around and verified that this sorts correctly:
     24{{{
     25About Us
     26 -Board of Directors
     27   --ZZZAnnual Reports
     28 -FAQ
     29 -Initiatives
     30  --Ohio...
     31  --Reach
     32}}}
     33If one grandchild has a sort order above its parent, all the grandchildren are pulled above the parent in the hierarchy. For example:
     34{{{
     35About Us
     36 -Board of Directors
     37   --ZZZAnnual Reports
     38 -FAQ
     39 -AAAAOhio...
     40 -Reach
     41 -Initiatives
     42}}}