Body BG:
Header Styles
Top Menu Colors:

BG Color:
Background Image:
Text Color:
Footer Styles
Footer Colors:

Button Styles
Button Colors:

How to add a custom metabox to the Menu Management admin screen?

How to add a custom metabox to the Menu Management admin screen?

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.


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.

About Author: XPERTS

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">