0

Using WordPress custom navigation menus automatically gets the menu item label and displays it between the of the menu item, what I need to do is to get a custom field value of the page and displays it instead of the menu item label. How can I do that ?

Chip Bennett
  • 55,109
  • 8
  • 91
  • 170
Mohamed Said
  • 275
  • 6
  • 11

1 Answers1

2

You need a custom walker. Change the function function start_el() to use your custom field’s value.

fuxia
  • 107,219
  • 39
  • 255
  • 462