• Hi all,

    I’m using the polylang plugin and want to include a language specific file to my page.

    This works but it’s not language specific yet.
    <?php include(ABSPATH."/uploads/myfile.php"); ?>

    I would like to add the language code to the file depending on which language I’m in the website.
    <?php echo get_bloginfo ( 'language' ); ?>

    So I get somthing like myfile_en-US.php

    Hoop there is a solution for this.
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add language code to include file.’ is closed to new replies.