Title: menu items type link
Last modified: August 22, 2016

---

# menu items type link

 *  [Sabrina_B](https://wordpress.org/support/users/sabrina_b/)
 * (@sabrina_b)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/menu-items-type-link/)
 * I’ve problems with set menu multilanguage.
    I’ve a problem with menu items with
   link.
 * I have a menu with item to portfolio page and I must use menu item link to reach
   the page.
 * When I put the different url (one about english, one about italian) with code
   “
   <!–:en–>/en/link_pagina/<!–:–><!–:it–>/link_pagina/<!–:–>” the menu item is not
   linkable becouse the url value is empty.
 * I tried with the code ‘[en:]’, but doesn’t work.
 * I understand that I’d put the value of field in __(), I solved the same problem
   with custom fields, but I don’t find when/where the value of menu-item-url has
   saved.
 * Can you help me?
 * Thank you
 * [https://wordpress.org/plugins/qtranslate-xp/](https://wordpress.org/plugins/qtranslate-xp/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [kame3d](https://wordpress.org/support/users/kame3d/)
 * (@kame3d)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/menu-items-type-link/#post-5340133)
 * i am having same problem
 *  Thread Starter [Sabrina_B](https://wordpress.org/support/users/sabrina_b/)
 * (@sabrina_b)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/menu-items-type-link/#post-5340134)
 * Hi!
    I don’t remember why, but i’d disitalled qtranslate plus and installed mqTranslate.
 * And i solved the problem re-writing the code of navigation menu!
    I think that
   solution is good with qTranslate plus too.
 * I put this code in function.php
 *     ```
       /*-----------------------------------------------------------------------------------*/
       /* Funzione per l'inserimento della scelta della lingua
       /*-----------------------------------------------------------------------------------*/
   
       if ( !function_exists( 'new_nav_menu_items' ) ) :
   
       	function new_nav_menu_items($items) {
       		$lang = qtrans_getLanguage();
   
        		$url_it = qtrans_convertURL($plink, 'it');
        	 	$url_en = qtrans_convertURL($plink, 'en');
   
       		if($lang == 'it')
       		{
       			$homelink = "<li>&nbsp;</li><li id='lingua' class='menu-item menu-item-type-post_type menu-item-object-page menu-item-52'><a href='" . $url_en . "'>English</a></li><!--" . $lang . "  -->";
       		}else
       		{
       			$homelink = "<li>&nbsp;</li><li id='lingua' class='menu-item menu-item-type-post_type menu-item-object-page menu-item-52'><a href='" . $url_it . "'>Italiano</a></li><!--" . $lang . "  -->";
       		}
   
       		$items = $items . $homelink;
   
           		return $items;
       	}
       	add_filter( 'wp_nav_menu_items', 'new_nav_menu_items' );
       endif;
       ```
   
 * It works, but i don’t know if that is the best solution.
 * I hope that I have not forgotten any additional steps.
 * Bye
 *  [st025](https://wordpress.org/support/users/st025/)
 * (@st025)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/menu-items-type-link/#post-5340140)
 * I had the same problem but I read a post that helped me.
    The link pages I wanted
   to pass on my menu were product categories. In case you want to do the same you
   may add the product categories in your menu choice buttons by going at the top
   of the page and choose Screen Options and then select the Product Categories 
   choise. This will then add the product categories in your menu button options
   and you can easily drag them to your menu.
 * You can translate the categories after you instal the plugin:
    qtranslate slug
 * And then:
    1. Find and open qtranslate-slug.php (in the folder for qtranslate-
   slug) 2. Search and replace all qtrans_ with ppqtrans_ 3. On row 262, make sure
   it says: (!is_plugin_active(‘qtranslate-xp/ppqtranslate.php’) &&
 * as described in the post:
    [](https://wordpress.org/support/topic/how-translate-categories-and-filters)
 *  [st025](https://wordpress.org/support/users/st025/)
 * (@st025)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/menu-items-type-link/#post-5340141)
 *  [st025](https://wordpress.org/support/users/st025/)
 * (@st025)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/menu-items-type-link/#post-5340142)
 * [https://wordpress.org/support/topic/how-translate-categories-and-filters](https://wordpress.org/support/topic/how-translate-categories-and-filters)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘menu items type link’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/qtranslate-xp_9abe93.svg)
 * [qTranslate Plus](https://wordpress.org/plugins/qtranslate-xp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/qtranslate-xp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/qtranslate-xp/)
 * [Active Topics](https://wordpress.org/support/plugin/qtranslate-xp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/qtranslate-xp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/qtranslate-xp/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [st025](https://wordpress.org/support/users/st025/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/menu-items-type-link/#post-5340142)
 * Status: not resolved