Support » Plugin: xili-language » [Plugin: xili-language] Cannot use functions

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Michel – xiligroup dev


    the_curlang() is a php function returning the slug of the current language usable like that inside the source of your theme (not in content of post):

    <h1>small example</h1>
    <?php if (the_curlang() == "en_us" ) {
    echo '<span>text</span>';
    } else {
    echo '<span style="color:red;">redtext</span>';
    } ?>

    List of functions are inside the plugin source and summarized here (follow link in this post)

    Thank you for your reply, I am already attempting to use the function in my template files.
    I have pasted your code above, and it still seems to break the page whenever I use the function the_curlang()

    I am using WP version 3.2.1 and plugin version 2.7.1

    do you sure that xili-language is activated ?
    are you easy in php coding ? have you test the function is active ?

    if ( function_exists('the_curlang' ) ) {

    Be more precise about error occurred


    Sorry, my mistake, the plugin had been deactivated for some reason, works ok now activated.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: xili-language] Cannot use functions’ is closed to new replies.