I am in the process of migrating from qTranslate to WPML to handle my languages.
With qTranslate, I had a very simple way to get an url to a page or post knowing it's slug:
$url = get_language_url(home_url($slug));
Now with WPML I can't find a way to do that...
icl_link_to_element function but it directly outputs the link in a a tag.. Besides, you need to know the post ID.
Any way I can get a link to a post in the correct language, knowing it's slug?