Contents
❹ Clicking on the icon allows you to edit the translation. The operation for posts, custom post types, categories and tags is exactly the same. ❺ The flag icon means that this page is in this language.
When does Polylang not show a language switcher?
Note: To avoid 404 errors, Polylang does not display a language on frontend if there is no published content (post or page) in that language. If there is no content in any language, then the language switcher does not appear at all.
Is it mandatory to translate all content in Polylang?
It is not mandatory to translate all the content. ❽ You can filter the content by language (posts, pages, media, categories, tags, comments, string translations). This choice is persistent (kept even when you log out) and also impacts the default language when creating a new content.
What does the icon mean on Polylang page?
❼ The icon means that a translation exists. Clicking on it allows you to edit the translation. It is not mandatory to translate all the content. ❽ You can filter the content by language (posts, pages, media, categories, tags, comments, string translations).
What can you do with Polylang plugin for WordPress?
Polylang allows you to create a bilingual or multilingual WordPress site. You write posts, pages and create categories and post tags as usual, and then define the language for each of them. The translation of a post, whether it is in the default language or not, is optional. You can use as many languages as you want.
How to create custom language switcher in Polylang?
‘post_id’ => if set, displays links to translations of the post (or page) defined by post_id (default: null) ‘raw’ => use this to create your own custom language switcher (default:0) Important: You have to output yourself the ul tags if you don’t use the dropdown option.
Where to find ul tags in Polylang widget?
If you want the same comportment as provided by the widget, you can find the corresponding code in the file polylang/include/widget.php. You have to output yourself the ul tags if you don’t use the dropdown option. If the options are not enough, you can build your own custom language switcher using the ‘raw’ argument: