No need for a lot of PHP code as Polylang already includes this. You can use for example:
<ul><?php pll_the_languages(array('hide_if_no_translation' => 1)); ?></ul>
No need for a lot of PHP code as Polylang already includes this. You can use for example:
<ul><?php pll_the_languages(array('hide_if_no_translation' => 1)); ?></ul>