You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parent page duplicated on huge use with menu_order in dropdown #12795
Describe the bug
Context: on a website with a lot of pages on 0/1/2/3 or 4 sublevels depending on the 1st level page, using menu order on first level but also sometimes on sublevel, the dropdown duplicate some pages and doesn't show all.
Debugging:
i duplicated the selector and changed the query to sort by ID, it's working fine. So to make it work change orderby menu_order to orderby id
I am seeing this same behavior (duplicates and missing pages) with WordPress 5.0.3. We have over 500 pages. I'm not sure if order has been set on any. The parent page dropdown from within Quick Edit still works correctly.
Activity
kent1D commentedon Dec 11, 2018
The best way to solve it may be to:
order: item.menu_order,orderBy(..., 'order')from lodash to sort by menu_order thenMarkPraschan commentedon Jan 31, 2019
I am seeing this same behavior (duplicates and missing pages) with WordPress 5.0.3. We have over 500 pages. I'm not sure if order has been set on any. The parent page dropdown from within Quick Edit still works correctly.
lakellie commentedon Feb 6, 2019
This issue was reported by a WordPress.com user with an Atomic site.
marjesch commentedon May 12, 2019
I have the same issue too. I have a large site with over 500 pages and my issue is exactly as described above.
LuckyTime154 commentedon Nov 2, 2019
I have the same issue. 500+ pages. It's been a year...Is WP planning to fix this or shall we give up on Gutenberg (again)?
talldan commentedon Apr 20, 2020
Possibly related: #21563
bobbingwide commentedon Jul 1, 2020
I also reported this problem in #13618 (comment) and reproduced it today with Gutenberg 8.4.
See also TRAC 46294 https://core.trac.wordpress.org/ticket/46294
Issue WordPress#12795 - alter orderby for menu_order to ensure unique…
Issue WordPress#12795 - alter orderby for menu_order to ensure unique…
Issue WordPress#12795 - alter orderby for menu_order to ensure unique…
Issue WordPress#12795 - alter orderby for menu_order to ensure unique…
Issue WordPress#12795 - prefix all orderby keys and use original order
Issue WordPress#12795 - prefix all orderby keys and use original order
Issue WordPress#12795 - correction for phpcs
DimitriDV commentedon Oct 2, 2020
I have the same issue!
Mamaduka commentedon Mar 27, 2025
I can no longer reproduce this issue. I believe it was resolved via #25267, when the component was refactored to use combobox.
I'm going to close the issue. Feel free to reopen it with reproduction steps if you're still experiencing the problem.