I have a multilingual website made with WPML.
I have php code to run across pages but I cannot uniquely target the page with is_page(ID)
since the ID of the page changes across language domain.
I need to write the code to target the page for each language.
What is the best practice to target pages across language domain?
I will try to explain the problem that occurred. Useful info: The site is up to date (plugins, WordPress, PHP). I use a premium theme and to do the translation I use the WPML.
I am trying to add a custom string to translate in wpml, but when I use the _e(…) the content jumps outside of container
I’m trying to figure out how to create a translation for a post using the internal WPML API (inc/wpml-api.php
)