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

clcp92 on "How can I Make polylang Detect the language in this Code."

$
0
0

Sorry I don't Know how to start with the wpml-config.xml file and I don't Know how to use pll_get_term Any Example? Or how I can Start

For now i Start to use this

<?php
 $currentlang = get_bloginfo('language');
 if($currentlang=="en-US"):
?>
 <div>Content in English</div>
<?php else: ?>
 <div>Content in Spanish (or other language)</div>
<?php endif; ?>

Viewing all articles
Browse latest Browse all 11471

Trending Articles



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