According to Polylangs Function Reference, pll_the_languages
Displays a language switcher.
And most probably it uses some additional CSS/JS to work. If you want to get the list of languages and display them with your custom code, then you can use this function instead:
pll_languages_list($args);
and it will return the list of languages.
$args is an optional array parameter. Options are:
- ‘hide_empty’ => hides languages with no posts if set to 1 (default: 0)
- ‘fields’ => returns only that field if set. Possible values are
‘slug’, ‘locale’, ‘name’, defaults to ‘slug’
Related Posts:
- detect the language a post is written in
- Polylang get non-current language/s
- WordPress multilingual site using page-id.php files
- Get the ID of the default language equivalent page in Polylang [closed]
- different domains disabled in polylang
- Multilanguage backend interface
- how to remember specific action/event for current user?
- phantom language switcher
- Polylang plugin translation problems
- HTML inside __() or _e() language translation string
- Change language by clicking a button
- Setting WPLANG from a plugin
- Best WordPress Localization Plugin? [closed]
- qTranslate get content by language [closed]
- How to determine current active language in qtranslate plugin? [closed]
- Titles in my sidebar widget appear in all languages – with qtranslate
- What is better for wordpress performace?
- WordPress | Sub-domain switching
- Checking current language in a function
- Is there a way to localize role labels?
- How to add just one page in Arabic
- Making a theme multilingual by adding a custom taxonomy to posts and pages called “Languages”?
- Multi-language module in WordPress or Google sites
- Translations does not work with .pot file
- Put an extra check box on “Page Attributes” widget
- Trigger language change in WordPress
- How to change language file used by _e function
- How to change language?
- Why isn’t WMPL correctly redirecting users based on browser language? [closed]
- WordPress For Urdu Language
- How to find a language direction?
- How to have english digits in some posts with an rtl WordPress theme
- Two different domains for two different languages
- What is the correct way for multi-domain and multi-language website?
- How to change the language of the ‘Reset Password’ page
- How to reload wordpress textdomains at runtime
- Two language versions for each article
- How can I make a site viewable in multiple languages?
- How to set up WPLANG in wp-config.php for 4 languages?
- Using categories as multilingual mechanism
- ‘Trick’ a plugin (WP-Members) to think the blog language has changed for a single page
- Is it possible to temporarily override the language setting?
- make a mulitingual wordpress website Arabic-english
- How to use language files in plugins?
- How to find when qtranslate plugin’s language changes? [closed]
- Simple Multilanguage Switcher
- What to write in the htaccess in order to detect browser language and point accordingly?
- How to have multiple site (UI) languages?
- Country switcher, then option to choose language for that country [closed]
- Specific content by country in multiple languages
- polylang + category/tag custom language link
- how to remove language selection option from wordpress?
- Switch site language to en_ZA
- Where to modify translation files by _e()
- language_attributes for two languages?
- Translating my custom theme, always translated version?
- WordPress and Localization
- qtranslate arabic shortcode?
- Problems character encoding for pages in multiple languages
- Can I set is_rtl() to true?
- WordPress in 3 languages
- Changing interface language without multisite
- WordPress Translation to french, at -> à not working
- Transposh Japanese language transaltion not showing up
- Wrong WordPress language?
- WP E-commerce wpml translation or multilingual
- Filter language in Polylang for custom taxonomy
- I cant test my .po file for Turkish Language
- Why .mo .po files are not working with my site?
- where to add this filter? in which file should be added?
- Multilingual website with different content and look
- How to add language tags like “” in just some certain pages?
- Localisation and WordPress
- 2 languages, 3 domains
- How to make a wordpress blog in two different languages?
- WordPress multi language works in local host but not in the live site?
- Create a custom page to use in all the sites, A multisite question
- How to use get_post_type_archive_link for a given language?
- Japanese characters not showing properly
- Conditionally (cpt) filter previous and next_post_link
- Theme isn’t multilanguage ready. How can i still add a second language to the site?
- Which language files are loaded?
- Having a two language website
- What are the downsides to uploading filenames in different languages?
- Setting WPLANG from a plugin
- Translation not working in sprinf variable
- Hijack site url on sub domain for translation
- Create a category in different language?
- Translate placeholder text in search field
- Having problem in using wordpress with an other language
- Multi language site using only .mo and WPLANG
- Multilingual website suggestions
- get_categories only getting categories in the main language
- multi-language WordPress site
- What is the best option to convert my WordPress website to French Language?
- category title and description in multi language issue
- site with two diffrent menus for difftent pages?
- white space appears when switch to rtl
- How to make WP in two languages (e.g. English & Bengali) without plugins
- Translation related post text to Arabic