Hi, i'm working on custom language switcher, and i want to use function pll_the_languages(); but this gives me array of link languages. How can i get seperate language links by the language slug? I just need separete buttons with links for languages.
html switcher structure:
<div class = "lang-en" ><a href = "<?php pll_the_languages( filter for english by slug ); ?>" >EN</a></div>
<div class = "lang-fr" ><a href = "<?php pll_the_languages( filter for french by slug ); ?>" >FR</a></div>
<div class = "lang-de" ><a href = "<?php pll_the_languages( filter for deutsch by slug ); ?>" >DE</a></div>
Can any one help me? :)