Polylang wpml_lang variable
-
My site uses Polylang, the default options work correctly out of the box. I’ve been following the documentation in order to output some language-specific scripts.
The problem is the content of this variable:
if ( $wpml_lang === 'es' )
On my install, the values are “_es” for Spanish and “_en” for English. I don’t know if this is due to using Polylang or something else?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Polylang wpml_lang variable’ is closed to new replies.