Is there a way to display the name of a custom menu in the frontend? I can't use the widget title because of the usage of many languages.
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
migrated from stackoverflow.com Nov 4 '11 at 15:13
|
Yes, you can display the name of custom menu in the frontend. All you need to know is the menu location identifier. This is the same id which is used in register_nav_menu() function. Here is the code:
|
|||
|
|