![]() ![]() However, wp_nav_menu() doesn't do this, as this code displays a specific navigation menu. When I am on the French side, it should list ALL the French menus (which is Primary Menu French ). I want to add a piece of code to the template that list ALL the English menus (the name or slug) when I am on the English side (which are Primary Menu & Quick Links ). There are 2 English menus & 1 French menu. For example, I have a English-French bilingual site and I have 3 menus in total. I don't want to display a specific menu, but want to list ALL the menu names from the current language. Please pass the ID or Name pass menu ID or name and then check. ![]() Is it possible to retrieve all the menu names/or slugs from the current language? I've used this code below, and it's returning NULL. If I am on the English side, it should list all the English menu names (such as Primary Menu, Quick Links), but it isn't. That being said, you don’t automatically get all of the benefits of a TV menu displayjust by setting one up. They’re easier to update, more visually appealing to customers, and offer superior functionality to their static counterparts. I normally use this to display a specific menu, however, I want to retrieve all the menu name/or slug from a certain language. Digital menus are superior to traditional menus in just about every way. I've tried using ' wp_nav_menu()', but it's not retrieving all the menu from a specific language. Wp_get_nav_menus() is designed to get all menus.įunction and WPML will display the translated menu. I will update you once we find something. ![]() How can I adjust the code above to display menus only from the current language? I want to list all the menus from current language.įor example, I have a English-French bilingual site and I have 3 menus in total. Right now, I am able to list all of the menus, however, I only want the ones from the current language. Last updated by paulM-12 2 years, 10 months ago. There are 2 English menus & 1 French menu. This topic contains 9 replies, has 2 voices. ![]()
0 Comments
Leave a Reply. |