How Do I Create a Language Switcher in WordPress?

Creating a language switcher in WordPress is fairly simple, and can be done in just a few minutes.

First, add a new shortcode to your posts or pages. The code will look like this:

[languageswitcher]

Name=My Language Switcher

Description=This is my language switcher page.

[/languageswitcher]

Next, input the language names you want to be able to switch between. For example, if you wanted to be able to switch between Spanish and English, you would enter “es” and “en” into the respective text fields.

Finally, add a simple link to your language switcher page in the post or page content. For example, if your language switcher page is located at http://www.

mysite.com/language-switcher, you would enter the following link into your post or page:.

http://www.mysite.com/language-switcher.