I have a problem showing the polylang switcher in my wordpress custom theme header.php
.
$mlkLng = pll_the_languages();
var_dump( $mlkLng );
//this return a string(0) ""
I have 3 languages in my site i can see it with the function
var_dump( pll_languages_list());
returns,
array(3) { [0]=> string(2) "en" [1]=> string(2) "fr" [2]=> string(2) "es" }
Cant find a work around ??