Title: create different language Menus
Last modified: May 22, 2018

---

# create different language Menus

 *  [blubbering](https://wordpress.org/support/users/blubbering/)
 * (@blubbering)
 * [8 years ago](https://wordpress.org/support/topic/create-different-language-menus/)
 * Hey There
 * Is it possible to create multiple Language Switchers Menus?
    What I need is a
   Language Switcher Menu for Swiss-Francs (DE, FR, IT) because it shows swiss francs
   informations. I need another Lanugage Switcher Menu for Euro (DE, FR, IT, EN).
 * If some one is on the Swiss Page in swiss francs I need to hide the languages
   for Euro prices.
 * Swiss-Menu:
    it_CH fr_CH de_CH
 * Euro-Menu:
    de_DE en_US fr_FR it_IT

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

 *  [veerap](https://wordpress.org/support/users/veerap/)
 * (@veerap)
 * [8 years ago](https://wordpress.org/support/topic/create-different-language-menus/#post-10326490)
 * Customized language switchers can be build with a function `pll_the_languages(
   array( 'raw' => 1 ) );`
 * The function will return an array of arrays, one array per language <– You can
   use it to create your own switcher functionality. More details in Polylang documentation:
   [polylang.pro/doc/function-reference/#pll_the_languages](https://polylang.pro/doc/function-reference/#pll_the_languages)
 *  Thread Starter [blubbering](https://wordpress.org/support/users/blubbering/)
 * (@blubbering)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/create-different-language-menus/#post-10387368)
 * Hm… it’s not working. If i add raw = 1 it shows just “array” nothing else, if
   I add the default, it shows all languages twice:
 *     ```
       if (function_exists('pll_register_string')) {
       	//pll_the_languages( array( 'raw' => 1 ) ); // Output: Array
       	//pll_the_languages( array( 'raw' => 0 ) ); // Output: All languages twice
       	//pll_the_languages(); //Output: All Languages
       }
       ```
   
 * Target is to have two switchers for CH and EU.
 *  [codestylist](https://wordpress.org/support/users/codestylist/)
 * (@codestylist)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/create-different-language-menus/#post-10387538)
 * As veerap wrote
 * > The function will return an array of arrays, one array per language <– You 
   > can use it to create your own switcher functionality.
 * This is why you get array as a result. You need to write your own switcher, based
   on this function.

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

The topic ‘create different language Menus’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [codestylist](https://wordpress.org/support/users/codestylist/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/create-different-language-menus/#post-10387538)
 * Status: not resolved