With Polyglot, I can give a page a different title for each language. For example,
<lang_en>About Us</lang_en><lang_es>Sobre Nosotros</lang_es><lang_fr>Au sujet de Nous</lang_fr>
When using the built-in function wp_list_pages, as in
<?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
the page is given the proper language title in the menu listing.
When using navigo like this though,
<?php if(function_exists('navigo')) navigo('collapse=true&sort_column=menu_order'); ?>
no language filtering is done, which results in all three languages showing up in the menu.
In other words, Polyglot and Navigo don’t work properly together. 🙂
Has anyone messed around with using these two together and figured out how to get it working properly? I don’t want to try to “reinvent the wheel” if someone else has already dealt with this successfully.
Alternatively, if anyone is familiar enough with them to point me in the right direction, I’d appreciate that, too.
- The topic ‘Polyglot Navigo’ is closed to new replies.