Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #52626, comment 8


Ignore:
Timestamp:
04/24/2022 11:11:58 AM (2 years ago)
Author:
hobzhobz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #52626, comment 8

    initial v1  
    55> Perhaps someone can solve it using the menu-order field.
    66
     7Warning: might sound condescending. But i'm trying to be extra clear here because this seems so hard for people to understand...
     8
    79It's already sorted by menu_order.
    810You know what happens if menu_order is 0 on all pages? Undefined behavior. You know what that means? It means that they come in seemingly random order. Do you know what that means when doing pagination? It means that page 1 has 100 random pages. Page 2 has 100 random pages. Did you know that this means that the same page can come on page 1 and page 2? Yes it can.
     
    1012
    1113BAD: order by menu_order limit 0,100
    12 GOOD: order by meny_order, ID limit 0,100
     14GOOD: order by menu_order, ID limit 0,100
    1315
     16
     17