Although I am very thankful to the wordpress core team that they have finally integrated native menu management capabilities I get frustrated with some key elements which I would like to change.
I need a way of showing pages which is hierarchical in the same way hierarchical categories are displayed instead of being in a list and I need a way of manually including links which can be added to a menu.
How can this be done?
Thanks in advance
UPDATED
So, here are the two things I am trying to do. Currently if you go to the default wordpress “menu management” admin screen you can select to display the “pages” metabox on the left. The problem here is that when you click on the “view all” tab NONE of the pages are ordered correctly and they are not indented if applicable.
CURRENT DEFAULT LAYOUT:
DESIRED LAYOUT: (please note that I just indented them to show the parent relationship, the items should also be sorted based on their sort order).
Additionally, within this list (or if easier then within its own metabox) I need some way of hard coding links which should be presented in the form of a checkbox list so one can click elements and include them within the menu. The reason for this is that instead of having to manually add these elements using the “custom links” I would prefer to select them from a list.
I succeeded in this, but it is a mess. Basically, the walker should have the following parameters:
But, to get that in place, you need to rip out the existing metabox callback, copy it, change one line so you get an extra filter, and place it back. Then you can pass your own walker that has these parameters set.
This is something that should be put into a ticket on WordPress Trac for the UI group to go over. http://core.trac.wordpress.org/
(Edit: Related Ticket is #14660 – Hierarchical Page List in wp-admin/nav-menus.php)