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

    (@chrystl)

    Hi

    Edit your “contact” page and do as explained here: 6 – TRANSLATING PAGE, POST, CATEGORIES AND TAGS ?.

    Is it what you want?

    Thread Starter filoveg

    (@filoveg)

    Sorry, I should have been more precise, it was really late and I didn’t know what I was typing ??
    I was hoping to find a solution where I can manually link to a specific page by name of main language, and link would change depending on current language set. But now I have succeded ??

    function alc_get_page($id){
    return get_page_link(pll_get_post($id));
    }

    <a href="<?php echo alc_get_page(43); ?>"><?php pll_e('kontakt'); ?></a>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Manual link to page’ is closed to new replies.