[Resolved] Conditional language switcher display
I am trying to get the language switcher to be displayed in my template only if a translation exist. The default behaviour where the home page
Reading through the support articles, I found references and sample code about the pll_the_language_link filter, but being the php dummy that I am, I struggle to find or write a function that I can apply a test on from my template to know whether a translation exists, and call pll_the_languages() depending on the result. Did not find any in api.php at least.
Any simple solution ?
Help much appreciated !
- The topic ‘[Resolved] Conditional language switcher display’ is closed to new replies.