Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are trying to display a language switcher on the menu using a shortcode.
Solution:
If you're experiencing this, we recommend you follow these steps:
1. Navigate to WPML → Languages.
2. Enable the option 'Custom Language Switchers'.
3. Use the shortcode

[wpml_language_selector_widget]

to display the language switcher wherever you need it.
You can also customize the appearance and behavior of the shortcode switcher under WPML → Languages → Custom Language Switchers.
For more details, visit Adding Language Switchers using PHP and Shortcodes.

If this solution does not apply to your case, or if it seems outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket if needed.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 2 replies, has 0 voices.

Last updated by frederikc-7 3 days, 19 hours ago.

Assisted by: Andrey.

Author Posts
November 21, 2025 at 11:45 am #17598670

frederikc-7

Background of the issue:
I am trying to show a language switcher on the menu using a shortcode. The issue can be seen on the page: hidden link.

Symptoms:
There is no specific issue, error, or unexpected behavior reported. The client seems to be seeking guidance on implementation.

Questions:
How can we show a language switcher on the menu using a shortcode?

November 21, 2025 at 3:06 pm #17599678

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for contacting WPML support.

To display a language switcher using a shortcode, please follow these steps:

1. Go to WPML → Languages.

2. Enable the option Custom Language Switchers.

3. Use the shortcode [wpml_language_selector_widget] to display the language switcher wherever you need it.

You can also customize the appearance and behavior of the shortcode switcher under WPML → Languages → Custom Language Switchers

More details can be found here:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/adding-language-switchers-using-php-and-shortcodes/

November 25, 2025 at 6:12 am #17606585

frederikc-7

Hi Team,
It's showing like a list.

How can we show it like a select dropdown?

Screenshot 2025-11-25 114138.png
November 25, 2025 at 6:25 am #17606605

frederikc-7

issue resolved