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
- Best WordPress Multi-language Plugin? [closed]
- Setting WPLANG from a plugin
- Best WordPress Localization Plugin? [closed]
- How to determine current active language in qtranslate plugin? [closed]
- How to manually link posts to each other in WordPress
- WPML: getting page title in different language
- Titles in my sidebar widget appear in all languages – with qtranslate
- Having two different versions of the same post?
- What is better for wordpress performace?
- Does changing ‘WPLANG’ in wp-config.php just effect the admin language or does it have other consequences?
- How to add just one page in Arabic
- One of the messages in .po file doesn’t show up
- Translations does not work with .pot file
- Put an extra check box on “Page Attributes” widget
- How to change language file used by _e function
- Qtranslate + Advanced Custom Fields: how to have a multilanguage wysiwyg editor? [closed]
- Insights into WordPress Multi-Site, Domain Mapped, and Multilanguage site using WPML [closed]
- How to change language?
- WordPress For Urdu Language
- How to find a language direction?
- How to have english digits in some posts with an rtl WordPress theme
- Getting translated string through a variable
- Two different domains for two different languages
- How to change the language of the ‘Reset Password’ page
- Two language versions for each article
- How to set up WPLANG in wp-config.php for 4 languages?
- Were the language toggles removed from WP recently?
- make a mulitingual wordpress website Arabic-english
- How to find when qtranslate plugin’s language changes? [closed]
- conditional (theme) language selection at ‘runtime’
- Simple Multilanguage Switcher
- How to have multiple site (UI) languages?
- How to make a wordpress site multilingual by uploading a translated CSV file that has the traslations?
- can’t change a few lines of text to another language
- Country switcher, then option to choose language for that country [closed]
- Specific content by country in multiple languages
- WordPress Multilinigual
- polylang + category/tag custom language link
- how to remove language selection option from wordpress?
- Multilingual website without third-party plugin
- I display messages using code snippets but how can I use the right language?
- language_attributes for two languages?
- How to set a dual language site in wordpress?
- WPML customizing language selector [closed]
- Translating my custom theme, always translated version?
- Website in multiple Language
- qtranslate arabic shortcode?
- Can I set is_rtl() to true?
- WordPress in 3 languages
- WPML language tags (Qtranslate feature) [closed]
- WordPress Translation to french, at -> à not working
- Transposh Japanese language transaltion not showing up
- WordPress Relative Path
- WordPress page with non-English text
- Redirection plugin and Chinese URLs
- Wrong WordPress language?
- WP E-commerce wpml translation or multilingual
- For multiple languages, two wordpress instances on subdomains or a plugin?
- Why .mo .po files are not working with my site?
- How to enqueue 2 rtl css
- where to add this filter? in which file should be added?
- how to change fonrs for Indian reqgional language?
- Language setting for Specific WordPress Page
- 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?
- Is there a way to ensure browser automatically translates page content to another language (via Google Translate)?
- Multi Language and Multi Theme WordPress
- WordPress multi language works in local host but not in the live site?
- How to use get_post_type_archive_link for a given language?
- Japanese characters not showing properly
- How to load rtl.css file without changing lanuage to persian in wordpress?
- Conditionally (cpt) filter previous and next_post_link
- 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
- Set language from url?
- Multilingual website suggestions
- get_categories only getting categories in the main language
- multi-language WordPress site
- 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
- Is there a way to change the site title depending on the language?
- make my custom theme support polylang plugin
- change wordpress log language to something different to website
- How to load rtl.css file without changing language to Persian in WordPress?