Quantcast
Channel: polylang – WordPress.org Forums
Viewing all articles
Browse latest Browse all 11471

morten66 on "[Plugin: Polylang] CLS - pll_the_languages - need seperate links for languages"

$
0
0

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? :)


Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>