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
Pages are missing from Parent Page dropdown #21563
Describe the bug
This website has 527 published pages. Only 447 pages are being listed in "Parent Page" dropdown.
Following return 100 pages: wp-json/wp/v2/pages?per_page=100&exclude%5B0%5D=111&parent_exclude%5B0%5D=111&orderby=menu_order&order=asc&context=edit&_locale=user
Following return 100 pages: wp-json/wp/v2/pages?per_page=100&exclude%5B0%5D=111&parent_exclude%5B0%5D=111&orderby=menu_order&order=asc&context=edit&_locale=user&page=2
Following return 100 pages: wp-json/wp/v2/pages?per_page=100&exclude%5B0%5D=111&parent_exclude%5B0%5D=111&orderby=menu_order&order=asc&context=edit&_locale=user&page=3
Following return 100 pages: wp-json/wp/v2/pages?per_page=100&exclude%5B0%5D=111&parent_exclude%5B0%5D=111&orderby=menu_order&order=asc&context=edit&_locale=user&page=4
Following return 100 pages: wp-json/wp/v2/pages?per_page=100&exclude%5B0%5D=111&parent_exclude%5B0%5D=111&orderby=menu_order&order=asc&context=edit&_locale=user&page=5
Following return 26 pages: wp-json/wp/v2/pages?per_page=100&exclude%5B0%5D=111&parent_exclude%5B0%5D=111&orderby=menu_order&order=asc&context=edit&_locale=user&page=6
100+100+100+100+100 + 26 = 526 pages are being returned using JSON API. But only 447 pages are being listed in parent page dropdown.
Hi @Razorrank, it's a little hard to reproduce this.
For testing purposes, can you try installing the Classic Editor plugin and seeing whether you're also seeing 447 pages there, or seeing indeed 526 pages?
@jasmussen , I installed the Classic editor and edited the page. It shows 486 items in the parent dropdown list. When I use "Quick Edit" feature it shows 487 items in the parent dropdown.
Thank you
Alright so it seems like the problem is not block editor specific. Which leaves two options, it's either intended, or it's an issue with the API. It's very probably the latter — but I wonder if there might be a reason for there being a reduced amount of parent page options. For example maybe you can't make a en existing parent page a child of another parent page? Not sure, but I'll flag this for some more feedback.
Looked at the error log in the root and /wp-admin/ for any potential relevant error messages but nothing is there!
Problem persist. The specific page that is not appearing in the parent list is not parent of any other pages.
If you refer to my first comment, I mentioned that the API collectively returns all the pages(paginated). It is the page-editor/block-editor that is not using that data to populate the parent list. Not sure why you think the issue is from the API!?
Do I need to provide more technical feedback or someone from your team will provide feedback?
It looks as if you've been exceptionally thorough with feedback here, thank you! Hopefully someone with more in-depth knowledge of the API will be able to look based on the "needs technical feedback" tag I added soon!
Activity
Razorrank commentedon Apr 15, 2020
Any updates on this?
jasmussen commentedon Apr 16, 2020
Hi @Razorrank, it's a little hard to reproduce this.
For testing purposes, can you try installing the Classic Editor plugin and seeing whether you're also seeing 447 pages there, or seeing indeed 526 pages?
Razorrank commentedon Apr 16, 2020
@jasmussen , I installed the Classic editor and edited the page. It shows 486 items in the parent dropdown list. When I use "Quick Edit" feature it shows 487 items in the parent dropdown.
Thank you
jasmussen commentedon Apr 17, 2020
Alright so it seems like the problem is not block editor specific. Which leaves two options, it's either intended, or it's an issue with the API. It's very probably the latter — but I wonder if there might be a reason for there being a reduced amount of parent page options. For example maybe you can't make a en existing parent page a child of another parent page? Not sure, but I'll flag this for some more feedback.
Razorrank commentedon Apr 17, 2020
@jasmussen ,
If you refer to my first comment, I mentioned that the API collectively returns all the pages(paginated). It is the page-editor/block-editor that is not using that data to populate the parent list. Not sure why you think the issue is from the API!?
Do I need to provide more technical feedback or someone from your team will provide feedback?
Thank you
jasmussen commentedon Apr 17, 2020
It looks as if you've been exceptionally thorough with feedback here, thank you! Hopefully someone with more in-depth knowledge of the API will be able to look based on the "needs technical feedback" tag I added soon!
tellthemachines commentedon Nov 29, 2020
Closing as this was fixed in #26397.