[wp-trac] [WordPress Trac] #15459: Need Better Page Hierarchy Display Algo
WordPress Trac
noreply at wordpress.org
Tue Oct 7 15:06:34 UTC 2014
#15459: Need Better Page Hierarchy Display Algo
--------------------------------+------------------------------------------
Reporter: truthmedia | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Posts, Post Types | Version: 3.0.1
Severity: normal | Resolution:
Keywords: has-patch dev- | Focuses: performance, administration
feedback |
--------------------------------+------------------------------------------
Comment (by nofearinc):
Even when applied properly (small fixes), there are some records that are
missing. For example:
Items number 4, 5, 6 are children of item 3 (imagine 3 child pages of a
parent page). Like the following structure:
Parent1
Parent2
Parent3
-Child1
-Child2
-Child3
Parent4
If you set the "posts per page" to 5, with the original implementation
you'll see the following results.
First page from pagination:
Parent1
Parent2
Parent3
-Child1
-Child2
Second page from pagination:
Parent3
-Child3
Parent4
The patch skips the Child3 display (which is tricky itself to get the
right number of entries transferred to the second page).
That said, the second page would actually display 6 items instead of 5 due
to Parent3 being duplicated in both pages 1 and 2.
The other problem is that there are different types of ordering - by name,
date etc., so I'm not sure that the patch would handle all of them
gracefully even if we delegate the search queries to SQL and fetch the IDs
only as we do now.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15459#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list