How to add a custom field in the advanced menu properties?

Posted by Prem Tiwari | Updated on

This will add a custom field to the menu item edit. However, you will not see the custom field until you have saved the menu for the newly added menu item. When you first add an item, you will only see the standard fields. After save, the new field will be available also for edit. If you add additional menu items, you will again have to save the menu to see and edit the custom field for the newly added items. I hope that explanation makes sense.

I was able to create and user a custom walker for creating the menu item edit fields. When you first add a menu item to the menu it seems to be entirely creating it with jQuery instead of the walker which is why you won’t see the custom field until after save.

I have creatively called the custom field I added “custom”. So you can change/edit/duplicate for whatever values you need. There are comments in the walker to show where I added the new field.

I hope this is helpful.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers