• Hello all.
    I really like Polylang plugin but there are some issues…
    I’m actually using custom php pages which begin with

    <?php if (is_page('my-page')) {
    get_header();
    //HTML + PHP instructions
    get_footer();
    }; ?>

    I have like 5 custom pages like that.. When I activate the plugin, the slug changes for the new language example: /blog (en-US) => /blog-2 (fr-FR) which is annoying since I use is_page(); …

    Any help ? Thanks

    https://wordpress.org/plugins/polylang/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Chrystl

    (@chrystl)

    Hello

    You can test the post_title instead of the slug if your titles are the same. Otherwise you can make 2 tests like this if (is_page('Contact') || is_page('Kontact') )

    Thread Starter Skoltz

    (@skoltz)

    Already tested. Thank you for your reply but I’ve changed plugin. I’m now using qtranslate and it works like charm 😉

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom PHP Pages not working after translation’ is closed to new replies.