-
Notifications
You must be signed in to change notification settings - Fork 37
Allow pages to be re-ordered by drag-and-drop on page Customizer sections #32
Comments
I think that this drag-and-drop UI should only apply if a page is not hierarchical. So a post type should be able to indicate whether it can be sorted manually but is not hierarchical. I don't believe there is currently a post type support for this. There is a |
I suggest |
We'll likely want to only modify the |
I think the experience would be a lot better if we can set menu order and hierarchy based on usage in menus. The biggest challenge there is deciding which menu to use, and that may require a user option. But with both posts and menus in the customizer, there's an opportunity to integrate the functionality more closely. |
@celloexpressions I agree. Ideally the |
WP_Customize_Posts may not be instantiated if a filter removes 'posts'. So the class WP_Customize_Postmeta_Setting may not exist. In this case, it would cause a fatal error, when accessing its property. So begin the conditional with class_exists().
This could also be how page hierarchy is managed.
Careful we don't want to duplicate existing logic for nav menu management.
The text was updated successfully, but these errors were encountered: