Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter chudoff.a

    (@chudoffa)

    it fix a Problem.

    function qtrans_menuitem2( $item ) {
    	foreach ($item as $key=>$values){
    	$item[$key]->title = qtrans_useTermLib($values->title);
    }
    
    qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $item->title );
       return $item;
    }
    add_filter('wp_nav_menu_objects',      'qtrans_menuitem2', 0);
    
    function qtrans_menuitem( $menu_item ) {
       $menu_item->title = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage( $menu_item->title );
       $menu_item->title = qtrans_useTermLib( $menu_item->title );
       return $menu_item;
    }
    add_filter('wp_setup_nav_menu_item',      'qtrans_menuitem', 0);

    @chudoff.a

    Where do you put this code? Is it in the function.php?

    OK, I put it in function.php.. but this fix doesn’t seem to translate the menu in the front-end… Any idea?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: qTranslate] Qtranslate Custom Menu Taxnomy’ is closed to new replies.