How to create a “blog” page, with loopers, in a multilingual website with WPML?
I created a looper for the blog pag (also for archives and others with custom post type), and then I need to translate it (the site is multilingual).
The problem is with the url used to link each post in the loop: {{dc:post:permalink}}: with this, the translated “layout” with the looper generates URLs like “mydomain.com/the-post”, without the language directory like “mydomain.com/en/the-post” (so that links always put you in the default language).
How can I generate links with the language directory in the looper?