"Parent" dropdown missing when only 1 page present
|Reported by:||dd32||Owned by:||sorich87|
At present, if you edit a hierarchical post type (Page, or custom type) and have only 1 page OR only have 1 top level page, The "Parent" dropdown list will be hidden.
The title and description remain, but there is no selection box.
This is due to wp_dropdown_pages() only displaying the <select> if pages are present.
One solution is to hide the entire parent functionality until pages are available
Another is to leave as-is
And another is to force the display of the <select> element even with no pages (Either all the time, or only when $show_option_none is set potentially..
While this would rarely be run into, It can cause some confusion for custom post_types which are more likely to have fewer entries.