Skip Navigation

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 1 reply, has 2 voices.

Last updated by Mihai Apetrei 1 year, 7 months ago.

Assisted by: Mihai Apetrei.

Author Posts
May 7, 2023 at 9:09 pm #13601403

gorM

Tell us what you are trying to do?

I'm trying to add short code for the language switching. If I'm using the Armenian language need a second language name and and vice versa․

Is there any documentation that you are following?

https://wpml.org/documentation/support/wpml-coding-api/shortcodes/

Is there a similar example that we can see?

[wpml_language_switcher type="custom" flags=0 native=0 translated=1][/wpml_language_switcher]

What is the link to your site?

hidden link

Opera Snapshot_2023-05-08_010803_ajbever.ivito.co.png
May 8, 2023 at 12:12 pm #13605301

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there.

Please take a look here:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/adding-language-switchers-using-php-and-shortcodes/

You should be able to do exactly what you wanted but by using a different shortcode.

Kind regards,
Mihai Apetrei