I\'m trying to get the language code of the WPLM wordpress plugin. This is how I\'m doing it without luck:
<?php if (substr(ICL_LANGUAGE_CODE,0,2) == 'es') { ?> <p>Spanish text</p> <?php> ?>
es_En isn't a valid language code. You'll want to just use es:
es_En
es
<?php if (ICL_LANGUAGE_CODE == 'es'): ?> <p>Spanish text</p> <?php endif; ?>