Hi!
What you get is what is expected as get_permalink does not translate the post id. The solution is in fact in the thread you linked to.
get_permalink(pll_get_post(10))
will get the translated post in the correct language.
Hi!
What you get is what is expected as get_permalink does not translate the post id. The solution is in fact in the thread you linked to.
get_permalink(pll_get_post(10))
will get the translated post in the correct language.