2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by blocblue
0

I assume you need to dynamically add the city id to the navigation item. If you do, then I think you're going to need to write and pass a custom walker to the wp_nav_menu function.

Also, bear in mind that just because WordPress provides a menu function, it doesn't mean it is the right tool to use. The menu is meant largely for static menus, rather than those that are dynamically generated. You might be just as well writing a class to render you own.

If the city id value is always going to remain the same, you can add it via the admin panel under appearance > menus

Edited by blocblue: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.