Open not-only-code opened 11 years ago
@fedenuche
Have you tried to put the code below in your function.php file?
function qtrans_menuitem( $menu_item ) {
if (stripos($menu_item->url, get_site_url()) !== false){
$menu_item->url = qtrans_convertURL($menu_item->url);
}
return $menu_item;
}
add_filter('wp_setup_nav_menu_item', 'qtrans_menuitem', 0);
Benoît
Yes, I tried but it didn't work.
I think andreu is talking about the custom links where you input the links manually. It is not a bug. I assume you just didn't implement the functionality to that feature. However, like andreu said, by manually applying qTranslate's tags (<--:en-->), it will automatically become compatible with the plugin's nav menu translator.