
We often use the excellent Polylang to translate website content, but by doing so we cannot reliable use functions such as get_page_by_title() or get_page_by_path() – because both the title and slug would change depending on which language version you are viewing ( not forgetting the unpredictable nature of using something that is so easy to edit to control template rendering ).
Instead we prefer to set a custom field for each post and in the the Polylang settings ensure that custom field data is not translatable.
No comments on this article yet.