• Resolved jdkeu456

    (@jdkeu456)


    Hi, I have two languages German (default) and English. I know the page_id of the german page, say ‘111’ and would like to get the coresponding page_id for the english page ‘222’.

    Is there a function for this? get_corresponding_id_for(111) -> 222

Viewing 1 replies (of 1 total)
  • Thread Starter jdkeu456

    (@jdkeu456)

    Ok, here is the solution in my case:

    $id_en = pll_get_post($id_de, “en”);

    Nice and simple, but hard to find out!

Viewing 1 replies (of 1 total)
  • The topic ‘PHP: get corresponding page_id’ is closed to new replies.